A

Admin • 833K Points
Coach

Q. Consider the following statements: int x = 22,y=15; x = (x>y) ? (x+y) : (x‐y); What will be the value of x after executing these statements?

  • (A) 22
  • (B) 37
  • (C) 7
  • (D) Error. Cannot be executed
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category C++
  • 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.