adplus-dvertising
frame-decoration

Question

What is the output of C program with conditional compilation commands?
#define CVV 156
int main()
{
    #ifdef CVV
        printf("CVV YES");
    #else
        printf("CVV NO");
    #endif
    return 0;
}

a.

156

b.

printf("CVV YES");

c.

CVV YES

d.

CVV NO

Posted under C Programming

Answer: (c).CVV YES

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 conditional compilation commands?