C | Macro & Preprocessor | Question 8
#define a 10
#define a 50
(A) Compiler Error
(B) 10 50
(C) 50 50
(D) 10 10
Explanation: Preprocessor doesn’t give any error if we redefine a preprocessor directive. It may give warning though. Preprocessor takes the most recent value before use of and put it in place of a.
Attention reader! Don’t stop learning now. Get hold of all the important C++ Foundation and STL concepts with the C++ Foundation and STL courses at a student-friendly price and become industry ready.