Explore topic-wise MCQs in C Preprocessor.

This section includes 104 Mcqs, each offering curated multiple-choice questions to sharpen your C Preprocessor knowledge and support exam preparation. Choose a topic below to get started.

101.

Will the program compile successfully? #include int main() { printf("India" "BIX n"); return 0; }

A. Yes
B. No
Answer» B. No
102.

Will the program compile successfully? #include #define X (4+Y) #define Y (X+3) int main() { printf("%d n", 4*X+2); return 0; }

A. Yes
B. No
Answer» C.
103.

Will the program compile successfully? #include int main() { #ifdef NOTE int a; a=10; #else int a; a=20; #endif printf("%d n", a); return 0; }

A. Yes
B. No
Answer» B. No
104.

Will the following program print the message infinite number of times? #include #define INFINITELOOP while(1) int main() { INFINITELOOP printf("IndiaBIX"); return 0; }

A. Yes
B. No
Answer» B. No