Which statement is used to take input from the user in C?
Correct answer
B. scanf
12 views
B. scanf
12 views
scanf() reads formatted input from the keyboard. printf() displays output. Both are declared in stdio.h. Using scanf without the correct format specifier is a common mistake.
Asked in: Matric,FBISE
Not sure why the answer is B? Ask here and get an explanation.