🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.math.h
  2. B.string.h
  3. C.stdio.h
  4. 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 →