Top

Discussion

Will the program compile successfully?

#include
#define X (4+Y)
#define Y (X+3)

int main()
{
    printf("%d\n", 4*X+2);
    return 0;
}

 

  • A.Yes
  • B.No

Answer: B

Reports an error: Undefined symbol 'X'

No comment is present. Be the first to comment.
Loading…

Post your comment