Define: The printf() function is used to display output on the screen. It is defined in stdio.h (header file) in C library.
syntax: printf( "format string", argument list);
Explanation: Format string is also known as control string. It may consist of the following
Text: Any message to display on the screen.
E.g: printf( " This is the message");
Format specifier: Specify how the values of variables will be displayed.
Escape sequence: Specify the format of the output. It always starts with backslash "\".
Class 10 and second year computer science
ReplyDelete