iGET

C Programming - MCQ Practice Questions

Practice free C Programming multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.

972 questions | 100% Free

Q.481Medium

Consider nested macro expansion: #define A B #define B 5 printf("%d", A); What is printed?

Q.482Medium

Which statement about __VA_ARGS__ in variadic macros is CORRECT?

Q.483Medium

Consider: #define DOUBLE(x) (2*(x)) int main() { int arr[DOUBLE(5)]; ... } What is the size of the array?

Q.484Medium

What will be the preprocessed output of the following code? #define SQUARE(x) x*x int result = SQUARE(5+3);

Q.485Medium

What does the __VA_ARGS__ preprocessor feature allow in variadic macros?

Q.486Medium

What is the output of the following code? #define STR(x) #x printf(STR(Hello World));

Q.487Medium

Consider this preprocessor code: #define CONCAT(a,b) a##b int CONCAT(var,1) = 10; What is the actual variable name created?

Q.488Medium

Consider the following preprocessor directives: #define MAX 100 #define MIN 50 #undef MAX #define MAX 200 int main() { printf("%d", MAX); return 0; } What will be the output of this program?