Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
#define COLD
int main()
{
    #ifdef COLD
    printf("COLD\t");
    #undef COLD
    #endif
    #ifdef COLD
    printf("HOT\t");
    #endif
}

A. HOT

B. COLD

C. COLD HOT

D. No Output

Answer: Option B


This Question Belongs to C Program >> Function

Join The Discussion

Related Questions on Function