M

Mr. Dubey • 52.49K Points
Coach

Q. Consider the following code: int x, y, z;~~~y = 1;~~~z = 5;~~~x = 0 - (++y) + z++;~~~after execution of this, what will be the values of x, y and z?

  • (A) x = 4, y = 1, z = 5.
  • (B) x = 3, y = 2, z = 6.
  • (C) x = -7, y = 1, z = 5.
  • (D) x = 4, y = 2, z = 6.
  • Correct Answer - Option(B)
  • Views: 73
  • Filed under category JAVA

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.


Question analytics