Computer Science, asked by MYTHRITG9036, 1 year ago

How is the control string of scanf( ) different than the control string of printf( )?

Answers

Answered by writersparadise
8

The control string of scanf() is different than the control string of printf().

Both scanf() and printf() are control strings of C language. The scanf() function is an input command whereas printf() is an output command.

scanf() helps to enter the value for a parameter used in a program while printf() provides the output or result of the program that was executed using the parameters given through the input command. The printf() control string can also print details that are not dependent on the scanf() control string parameters.

Answered by prakaashnariyaal
2

Answer:

Note that the general format (or syntax) for the scanf function is very similar to the format for printf , although there are two important differences. First, the control string consists almost entirely of conversion specifiers, which determine the type of data read from the keyboard.

Similar questions