Computer Science, asked by ameya1831, 1 year ago

what is the purpose of the control string in a scanf function in c programming?

Answers

Answered by lucky1742
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