stdio.hThe header file stdio.h stands for Standard Input Output. It has the information related to input/output functions.Here is the table that displays some of the functions in stdio.h in C language, Sr.No.Functions & Description1printf()It is used to print the strings, integer, character etc on the output screen.2scanf()It reads the character, string, integer etc from the keyboard.3getc()It reads the character from the file.4putc()It writes the character to the file.5fopen()It opens the file and all file handling functions are defined in stdio.h header file.6fclose()It closes the opened file.7remove()It deletes the file.8fflush()It flushes the file.Here is an example of stdio.h in C language, ... Read More
Use the font-size-adjust property to preserve the readability when font fallback occurs. You can try to run the following code to implement the font-size-adjust propertyExampleLive Demo #demo { font-size-adjust: 0.90; } Heading Two With font-size-adjust property: This is demo text. Without font-size-adjust property: This is demo text.
To implement animation on the border-bottom-color property with CSS, you can try to run the following code ExampleLive Demo div { width: 500px; height: 400px; background: yellow; border: 10px solid yellow; background-image: url('https://www.tutorialspoint.com/latest/microservice_architecture.png'); animation: myanim 3s infinite; background-position: bottom left; background-size: 50px; } @keyframes myanim { 20% { background-color: maroon; background-position: bottom right; background-size: 90px; border-bottom-color: green; } } Performing Animation for bottom border color
The isspace() function is a predefined function in ctype.h. It specifies whether the argument is a whitespace character or not. Some of the whitespace characters are space, horizontal tab, vertical tab etc.A program that implements isspace() function by counting the number of spaces in a string is given as follows −Example Live Demo#include #include using namespace std; int main() { char str[] = "Coding is fun"; int i, count = 0; for(i=0; str[i]!='\0';i++) { if(isspace(str[i])) count++; } cout
To implement animation on the border-top property with CSS, you can try to run the following codeExampleLive Demo table,th,td { border: 1px solid black; } #newTable { width: 500px; height: 300px; background: yellow; border: 15px solid yellow; animation: myanim 3s infinite; background-position: bottom left; background-size: 50px; } @keyframes myanim { 30% { background-color: orange; border-right-color: red; border-right-width: 25px; border-spacing: 50px; border-top: 125px solid red; } } Performing Animation for top border Subject Student Marks Maths Amit 98 Science Sachin 99
Static data members are class members that are declared using the static keyword. There is only one copy of the static data member in the class, even if there are many class objects. This is because all the objects share the static data member. The static data member is always initialized to zero when the first class object is created.The syntax of the static data members is given as follows −static data_type data_member_name;In the above syntax, static keyword is used. The data_type is the C++ data type such as int, float etc. The data_member_name is the name provided to the ... Read More
Three numbers can be swapped in cyclic order by passing them to a function cyclicSwapping() using call by reference. This function swaps the numbers in a cyclic fashion.The program to swap numbers in cyclic order using call by reference is given as follows −Example Live Demo#include using namespace std; void cyclicSwapping(int *x, int *y, int *z) { int temp; temp = *y; *y = *x; *x = *z; *z = temp; } int main() { int x, y, z; cout > y >> z; cout
Set a radial gradient as the background image, with radial-gradient() CSS function. You can try to run the following code to implement linear-gradient() function in CSSExampleLive Demo #demo { height: 200px; background: radial-gradient(green, orange, maroon); } Setting background as radial gradient.
Use the font-kerning property to control how letters placed on a web page. You can try to run the following code to implement the font-kerning propertyExampleLive Demo #demo { font-kerning: normal; } This is demo text.
The iscntrl() function in C++ checks if a character is a control character or not. This function is defined in ctype.h.The syntax for iscntrl() function is given as follows −int iscntrl ( int ch );Here, ch is the character that needs to be checked.A program that demonstrates iscntrl() function by counting the number of control characters in a string is given as follows −Example Live Demo#include #include using namespace std; int main() { char str[] = "Coding\tis\tfun"; int i, count = 0; for(i=0; str[i]!='\0';i++) { if(iscntrl(str[i])) count++; } cout
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP