Skip to content
Question Bank (2 marks) · Q2

Q.What does #inlcude directive specifies?

Karnataka PUCTextbookShort· 2mImportance★★★★★est
6% · 10/154 Questions
✓ Free question

[!TLDR]

#include tells the preprocessor to insert a specified header file into the program.

The #include directive instructs the C preprocessor to take the complete contents of the named file and insert them at that point in the source code before compilation. It is used to bring in the declarations of library functions. The file name is written in angle brackets < > for standard library headers or in double quotes " " for the programmer's own files.

#include <stdio.h>   /* standard I/O functions */
#include "myfile.h"  /* user-defined header */

[!ANSWER]

The #include directive specifies the header file whose contents are to be inserted into the program before compilation (e.g. #include <stdio.h>).

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.