Join Regular Classroom : Visit ClassroomTech

Format Specifier in C

Format specifier in C :

The Format specifier is a string used in the formatted input and output functions. With the help of format specifiers the compiler understand that what is the data type of the variable while taking input through scanf() function and printing the output through printf() function. The format string always starts with a ‘%’ character.

There are many format specifiers in C. Here is the list of some commonly used format specifiers and there description :

Example:

Categories
Pages
Recent Posts