Vidyalelo
C Programming · Q72

C Preprocessor

Programming · C Programming · question 72

Q72

What will be the output of the following C code? #include #define hello 10 main() #ifdef hello #undef hello #define hello 100 #else #define hello 200 #endif printf("%d",hello);

A.
Error
B.
10
C.
100
Answer
D.
200

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board