The arguments to the scanf function are pointers. This is the reason why arguments are preceded by an ampersand (&) symbol (i.e., an address operator). The & operator assigns it a memory location. Also note that the order of these specifiers and their arguments must be the same or else an error is reported by the C compiler. Next let us discuss the printf( ) function. The
printf( ) function is used to accept output data from a
computer to a standard device in a fixed format. It is a formatted output function. Its syntax is as
follows: