C | Macro & Preprocessor | Question 2

Last Updated :
Discuss
Comments
C
#include <stdio.h>
#if X == 3
    #define Y 3
#else
    #define Y 5
#endif

int main()
{
    printf("%d", Y);
    return 0;
}

What is the output of the above program?
 

3

5

3 or 5 depending on value of X

Compile time error

Tags:
Share your thoughts in the comments