Vidyalelo
C Programming · Q102

Function

Programming · C Programming · question 102

Q102

What will be the output of the following C code? #include #define COLD int main() #ifdef COLD printf("COLD "); #undef COLD #endif #ifdef COLD printf("HOT "); #endif

A.
HOT
B.
COLD
Answer
C.
COLD HOT
D.
No Output

Answer: Option B

Solution

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