C | Macro & Preprocessor | Question 15
What is the output for the following code snippet?
#include<stdio.h> #define A -B #define B -C #define C 5 int main() { printf ( "The value of A is %d\n" , A); return 0; } |
chevron_right
filter_none
This question is contributed by Aastha Anand.
(A) The value of A is 4
(B) The value of A is 5
(C) Compilation Error
(D) Runtime Error
Answer: (B)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Recommended Posts:
- C | Macro & Preprocessor | Question 11
- C | Macro & Preprocessor | Question 10
- C | Macro & Preprocessor | Question 5
- C | Macro & Preprocessor | Question 1
- C | Macro & Preprocessor | Question 4
- C | Macro & Preprocessor | Question 14
- C | Macro & Preprocessor | Question 13
- C | Macro & Preprocessor | Question 12
- C | Macro & Preprocessor | Question 14
- C | Macro & Preprocessor | Question 2
- C | Macro & Preprocessor | Question 7
- C | Macro & Preprocessor | Question 6
- C | Macro & Preprocessor | Question 8
- C | Macro & Preprocessor | Question 9
- The OFFSETOF() macro