Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Preprocessor directives in C
#1
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
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)