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

  • (A) 10
  • (B) 20
  • (C) -10
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) -10
Explanation: The expression (x - y) evaluates to -10.
Explanation by: Praveen Singh
The expression (x - y) evaluates to -10.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
122
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
91%
Success Rate