c_programming_language/c_modern_approach/Preprocessor/ifdef_ifndef.c

13 lines
251 B
C

#include <stdio.h>
// #define DEBUG 1
// #ifdef identifier is similar to #if defined(identifier)
//
// #ifndef is just opposite of #ifdef
int main() {
#ifdef DEBUG
printf("DEBUG defined!");
#else
printf("DEBUG NOT defined!");
#endif
return 0;
}