Question PRG-C-0059
MediumWhat does a macro like #define SQ(x) x * x give for SQ(2 + 3)?
- A.
Compilation error
- B.
25
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
C question
What does a macro like #define SQ(x) x * x give for SQ(2 + 3)?
Compilation error
25
Sign up free to see the answer and a step-by-step explanation.
11, because it expands to 2 + 3 * 2 + 3
10