The printf() function is an inbuilt library function in C language, which is used for output, i.e, to print a given statement on the console. The printf() function is defined in stdio.h (header file) in C library.
Syntax:
printf(“format string”,argument_list);
The scanf() function is an inbuilt library function in C language, which is used for input, i.e, to read the input data from the console. The scanf() function is also defined in stdio.h (header file) in C library.
Syntax: