printf() function in C language :

In C programming language, printf() function is used to print the "character, string, float, integer, octal and hexadecimal values" onto the output screen. We use printf() function with %d format specifier to display the value of an integer variable. Similarly the %c is used to display character, %f for float variables, %s for string variable, %lf for double and %x for hexadecimal variable.

To generate a new line, we use "\n" ub C printf() statement.

Note

C language is case sensitive. For example, printf() and scanf() are different from Printf() and Scanf(). All characters in printf() and scanf() functions must be in lower case.

scanf() function in C language :

In C programming language, scanf() function is used to read character, string, numeric data from keyboard.