Question PRG-C-0004
EasyWhich header file must be included to use printf() in C?
- A.
stdio.h
- B.
stdlib.h
- C.
Show answer and explanation
Answer: A
printf and scanf are declared in <stdio.h> (standard input/output).
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
C question
Which header file must be included to use printf() in C?
stdio.h
stdlib.h
Answer: A
printf and scanf are declared in <stdio.h> (standard input/output).
math.h
string.h