Top

Discussion

What is the output for the following code snippet?

#include
#define A -B
#define B -C
#define C 5

int main()
{
  printf("The value of A is %dn", A); 
  return 0;
} 

 

  • A.The value of A is 4
  • B.The value of A is 5
  • C.Compilation Error
  • D.Runtime Error

Answer: B

No answer description available for this question.

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

Post your comment