C Preprocessor MCQs
Practice free C Preprocessor multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 93 questions — no login required.
Question 19easy
What is the result of the #error directive in C preprocessing?
Question 20easy
What is the purpose of the #pragma message directive in C preprocessing?
Question 21easy
In C, how do you use the #ifndef directive to conditionally include code if a macro is not defined?
Advertisement
Question 22easy
What does the #pragma once directive do in C preprocessing?
Question 23easy
In C, what is the purpose of the #ifdef directive?
Question 24easy
What is the purpose of the #pragma warning directive in C preprocessing?
Advertisement
Question 25easy
In C preprocessing, what is the purpose of the #elifdef directive?
Question 26easy
What is the result of the #pragma message directive in C preprocessing?
Question 27easy
What is the purpose of the #undef directive in C preprocessing?