C Programming :: C Preprocessor
-
What will be the output of the program?
#include' #define MAN(x, y) ((x)>(y)) ? (x):(y); int main() { int i=10, j=5, k=0; k = MAN(++i, j++); printf("%d, %d, %d\n", i, j, k); return 0; } -
Will the program compile successfully?
#include #define X (4+Y) #define Y (X+3) int main() { printf("%d\n", 4*X+2); return 0; } -
Will the program compile successfully?
#include int main() { printf("Fresher" "Gate\n"); return 0; } -
Will the program compile successfully?
#includeint main() { #ifdef NOTE int a; a=10; #else int a; a=20; #endif printf("%d\n", a); return 0; } -
Will the following program print the message infinite number of times?
#include #define INFINITELOOP while(1) int main() { INFINITELOOP printf("Freshergate"); return 0; } -
Will it result in to an error if a header file is included twice?

Whatsapp
Facebook