During input and output, the format specifier is utilised. It’s a technique to notify the compiler what kind of data is in a variable when using scanf() or printf() to take input (). Percentages such as c, d, and f are some instances. Long integer values are represented using the percent ld format specifier. For printing the lengthy integer value contained in the variable, the printf() function is used.