Contact: aviboots(AT)netvision.net.il
41,255 questions
53,764 answers
573 users
#include <stdio.h> #define DEBUG int main(void) { printf("main start\n"); #ifdef DEBUG printf("DEBUG\n"); #endif printf("main end\n"); return 0; } /* run: main start DEBUG main end */
#include <stdio.h> #define DEBUG int main() { #ifdef DEBUG printf("DEBUG is on\n"); #endif #ifndef DEBUG printf("DEBUG is off\n"); #endif return 0; } /* run: DEBUG is on */