Top

Discussion

What will be the output of the following code snippet?
 

Y = 5;
if (! Y > 10)
X = Y + 3;
else
X = Y + 10;

printf(“ X = %d Y = %d”, X, Y);

 

  • A.The program will print X = 15 Y = 5
  • B.The program will print X = 15 Y = 0
  • C.The program will print X = 8 Y = 5
  • D.The program will print X = 3 Y = 0

Answer: A

No answer description available for this question.

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

Post your comment