Sail E0 Webinar
Question


Will the program compile successfully?


#include<stdio.h>
#define X (4+Y)
#define Y (X+3)
int main()
{
printf("%d\n", 4*X+2);
return 0;
}
Options:
A .  Yes
B .  No
Answer: Option B

Reports an error: Undefined symbol 'X'



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers