We can broadly categorize the preprocessor directives into two groups-conditional and unconditional preprocessor directives.
TYPES
OF PREPROCESSOR DIRECTIVES
We
can broadly categorize the preprocessor directives into two groups-conditional
and unconditional preprocessor directives. Figure 10.1 shows the categorization
of preprocessor directives.
The
conditional directives are used to instruct the preprocessor to select whether
or not to include a chunk of code in the final token stream passed to the
compiler. Such directives comprise directives such as #if, #else, #elif, #ifdef, #ifndef, and #endif.
Programming in C: Unit I (d): Preprocessor Directives : Tag: : Programming in C - Types of Preprocessor Directives
Programming in C
CS3251 2nd Semester CSE Dept 2021 | Regulation | 2nd Semester CSE Dept 2021 Regulation