What is the use of #include directive in C language?
A. To include a header file in the program
B. To include a source file in the program
C. To include a library function in the program
D. To include a comment in the program
Answer:A
What is the use of #include directive in C language?
A. To include a header file in the program B. To include a source file in the program C. To include a library function in the program D. To include a comment in the program
Explanation: Using the preprocessor command #include, the compiler is told to include a header file in the program. Function, macro, constant, and other declarations that can be used by the program are found in the header file. For instance, the standard input/output header file, which contains functions like printf(), scanf(), etc., is included when #include stdio.h> is used.