A

Admin • 833K Points
Coach

Q. What is the value of x after this code?

Code:
int x = 10;
x += 5;
  • (A) 5
  • (B) 10
  • (C) 15
  • (D) 20
  • Correct Answer - Option(C)
  • Views: 20
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

x += 5 means x = x + 5, hence x becomes 15.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.