C Preprocessor

Q1: 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;
}

A Yes

B No

ANS:A - Yes

Reports an error: Undefined symbol 'X'



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.