QUIZ 46

What is the output?

#define X (4+Y)
#define Y (X-3)
void main()
{
printf(“%d”,X);
}

a. Compile time error
b. Runtime Error.
c. Program crashes due to endless evaluation
d. None.

Answer : (a)

Compile time error occurs as Y is not declared before use

Leave a Reply

Your email address will not be published. Required fields are marked *