Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x *= y);

  • (A) 10
  • (B) 20
  • (C) 200
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) 200
Explanation: The compound assignment operator (*=) multiplies x by y and returns the new value of x, which is 200.
Explanation by: Vinay
The compound assignment operator (*=) multiplies x by y and returns the new value of x, which is 200.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
113
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vinay
Publisher
πŸ“ˆ
84%
Success Rate