adplus-dvertising
frame-decoration

Question

What is the output of C program with preprocessor directives?
int main()
{
    #ifdef CVV
        #define CVV 199
    #elif PVV
        printf("Inside ELIF");
    #else
        printf("Inside ELSE");
    #endif
    return 0;
}

a.

Inside ELIF

b.

Inside ELSE

c.

No output

d.

Compiler error

Answer: (b).Inside ELSE

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of C program with preprocessor directives?