adplus-dvertising
frame-decoration

Question

What is the output of C program with preprocessor directives?
#define CVV 156
int main()
{
    #ifdef cvv
        printf("CVV YES");
    #else
        printf("CVV NO");
    #endif
    return 0;
}int main()
{
    #ifdef CVV
        printf("CVV YES");
    #else
        #define CVV 199
    #endif
    printf("NEW CVV=%d",CVV);
    return 0;
}

a.

CVV 199

b.

printf("CVV YES");

c.

CVV YES

d.

NEW CVV=199

Posted under C Programming

Answer: (d).NEW CVV=199

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?