what is the purpose of the control string in a scanf function in c programming?
Answers
Answered by
2
The format specifier %d is used in scanf() statement. So that, the value entered is received as an integer and %s for string. Ampersand is used before variable name “ch” in scanf() statement as &ch. It is just like in a pointer which is used to point to the variable.
Similar questions