HRS - Ask. Learn. Share Knowledge. Logo

In Computers and Technology / College | 2025-07-08

Which header file is required for `printf()` and `scanf()`?
a. math.h
b. stdlib.h
c. conio.h
d. stdio.h

Asked by mohamedyussuf7573

Answer (2)

The header file required for using the functions printf() and scanf() in C programming is stdio.h. Other mentioned files serve different purposes and do not provide I/O functionalities. Thus, option d. stdio.h is the correct choice. ;

Answered by GinnyAnswer | 2025-07-08

The required header file for using printf() and scanf() in C programming is stdio.h . This header file is necessary for performing standard input and output operations. Therefore, the correct answer is option d. stdio.h.
;

Answered by Anonymous | 2025-07-12