Examveda
Examveda

What will be the output of the following C code?
#include<stdio.h>
#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

D. 200

Answer: Option C


This Question Belongs to C Program >> C Preprocessor

Join The Discussion

Related Questions on C Preprocessor