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

Code:
int x = 10;
x += 5;
  • (A) 5
  • (B) 10
  • (C) 15
  • (D) 20
πŸ’¬ Discuss
βœ… Correct Answer: (C) 15
Explanation: x += 5 means x = x + 5, hence x becomes 15.
Explanation by: Mr. Dubey
x += 5 means x = x + 5, hence x becomes 15.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
100
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate