C Preprocessor - Study Mode

[#1] What is the purpose of the C preprocessor in C programming?
Correct Answer

(C) Preprocess code before compilation

[#2] Which directive is used to include the contents of another file in a C program using the C preprocessor?
Correct Answer

(B) #include

[#3] What is the purpose of the #define directive in C preprocessing?
Correct Answer

(B) To define a macro

[#4] In C, which directive is used to conditionally include code based on preprocessor macros?
Correct Answer

(C) #if

[#5] What is the result of the #ifdef DEBUG directive if the DEBUG macro is defined?
Correct Answer

(A) The code block following it is included