← Quiz: C Introduction: all 10 questions
Quiz: C Introduction · Question 5 of 10
Which header file is needed for printf?
Which header file is needed for printf?
- A.math.h
- B.string.h
- C.stdio.h
- D.stdlib.h
Answer & explanation
Correct answer: stdio.h
printf and scanf are declared in stdio.h (standard input/output).
Can you get the rest right without peeking?
Take the timed Quiz: C Introduction quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →