Skip to content
Question Bank (2 marks) · Q1

Q.Write the commonly used directive.

Karnataka PUCTextbookShort· 2mImportance★★★★★est
3% · 4/154 Questions
✓ Free question

[!TLDR]

The commonly used preprocessor directives are #include and #define.

Directives are instructions to the C preprocessor and always start with the # symbol. The two most frequently used are the file-inclusion directive #include, which brings the contents of a header file into the program, and the macro-definition directive #define, which defines a symbolic constant or macro that is substituted before compilation.

#include <stdio.h>   /* includes standard I/O header */
#define PI 3.14      /* defines a symbolic constant */

[!ANSWER]

The commonly used directives are #include (file inclusion) and #define (symbolic constant/macro definition).

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.