Preprocessor directives in C - Printable Version +- QP School (https://qomplainerzschool.lima-city.de) +-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3) +--- Forum: C 18 Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=32) +--- Thread: Preprocessor directives in C (/showthread.php?tid=5101) |
Preprocessor directives in C - Qomplainerz - 07-25-2023 Preprocessor directives are instructions to the compiler before actual compilation. // #define directive for a macro #define PI 3.14159 // #include directive to include a header file #include <stdio.h> // Other preprocessor directives #ifdef DEBUG printf("Debug mode\n"); #else printf("Release mode\n"); #endif |