A

Admin • 833K Points
Coach

Q. What is the output of C program?

Code:
#include <stdio.h>
#if X == 3
#define Y 3
#else
#define Y 5
#endif

int main()
{
printf("%d", Y);
return 0;
}
  • (A) 3
  • (B) 5
  • (C) 3 or 5 depending on value of X
  • (D) Compile time error
  • Correct Answer - Option(B)
  • Views: 26
  • Filed under category C Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.