#include #define debugPrintf(...) \ if( debugMode == 1 ) { \ printf(__VA_ARGS__); \ } int debugMode = 1; int fact(int n) { if( 0 == n || 1 == n ) { return 1; } return n * fact(n-1); } int main(int argc, char **argv) { int i=0; for(i=0; i < 5; i++) { debugPrintf("The factorial of %d is %d\n", i, fact(i)); debugPrintf("This is the line numbe %d\n", i+1); debugMode = 0; debugPrintf("This is the second line numbe %d\n", i+1); debugMode = 1; debugPrintf("This is after turning on again the line numbe %d\n", i+1); } }