The function scanf() with _____ format specifier is needed to read the character. Fill in the blank.
Answers
Answered by
0
When you use a format specifier such as %d or %f to read numeric values, scanf actually reads the characters the user types and converts them to their numeric equivalents. When you ask scanf to read a character, it will read whatever is next as the value of the character.
Answered by
0
"The format specifier required for the function scanf() is %c which is needed to read the character.
In C programming, the functions responsible for input and output use format specifiers in order to specify the respective function and what type of value will be entered in the input or sent via output.
Each data type category has its own format specifier %d for decimal(int), %f for floating type (double and float), %s for string, etc."
Similar questions