What is #include stdio.h?

What is #include <stdio.h>?

a) A directive to include standard input-output library
b) A directive to include standard math library
c) A directive to include string handling library
d) A directive to include file handling library

Answer:

a) A directive to include standard input-output library

Explanation:

#include <stdio.h> is a preprocessor directive used in C to include the standard input-output library before the actual compilation of the code begins. This library provides functions like printf() for output and scanf() for input, which are essential for basic input-output operations in C.

Understanding preprocessor directives like #include is crucial for including necessary libraries and writing functional C programs.

Reference links:

https://www.rameshfadatare.com/learn-c-programming/

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top