Which header file is required for using printf and scanf?
A
conio.h
B
stdio.h
Correct answer
C
math.h
D
string.h
Correct answer
B. stdio.h
13 views
⚔️
Challenge a friend on Computer Science FBISE Class 10
Same MCQs, timed, live leaderboard. Send the link on WhatsApp – no sign-up needed.
Create challenge
Explanation
stdio.h stands for standard input/output header. It declares printf, scanf, and related functions. Without including it, the compiler will warn about undeclared functions.
Reference
Asked in: Matric,FBISE
Doubts & discussionNot sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ
‹ Previous MCQ The symbol used for a single-line comment in C is: Next MCQ › The process of finding and fixing errors in a program is called: