Preprocessor Directives
#define THIS
#define THAT

void main()
{
        #ifdef THIS && THAT
                printf("I love beer");
        #else
                printf("I love chicken");
        #endif
}

What is the output?

(A) I love beer
(B) I love chicken
(C) segmentation fault
(D) syntax error

Discuss

0Comment