C Programming :: C Preprocessor
-
What will be the output of the program?
#include #define MESS junk int main() { printf("MESS\n"); return 0; } -
What will be the output of the program?
#include#define PRINT(i) printf("%d,",i) int main() { int x=2, y=3, z=4; PRINT(x); PRINT(y); PRINT(z); return 0; } -
What will be the output of the program?
#include #define MAX(a, b, c) (a>b ? a>c ? a : c: b>c ? b : c) int main() { int x; x = MAX(3+2, 2+7, 3+7); printf("%d\n", x); return 0; }

Whatsapp
Facebook