Question
#include<stdio.h>
#define X (4+Y)
#define Y (X+3)
int main()
{
printf("%d\n", 4*X+2);
return 0;
}
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;
}
Answer: Option B
Was this answer helpful ?
Reports an error: Undefined symbol 'X'
Was this answer helpful ?
More Questions on This Topic :
Question 6.
Macros with arguments are allowed
....
Question 7.
Preprocessor directive #ifdef .. #else .......
Question 9.
Macros have a local scope.
....
Submit Solution