adplus-dvertising
frame-decoration

Question

What is the output of C program with Preprocessor directives?
void show();
int main()
{
    #ifndef CVV
        #define CVV 199
    #endif
    show();
    return 0;
}
void show()
{
    printf("CVV=%d",CVV);
}

a.

No output

b.

CVV=0

c.

CVV=199

d.

Compiler error

Posted under C Programming

Answer: (c).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?