πŸ“Š C++
Q. What is the output of the following code snippet? int x = 10; int y = 20; cout << (x < y);
  • (A) 1
  • (B) 0
  • (C) 10
  • (D) 20
πŸ’¬ Discuss
βœ… Correct Answer: (A) 1

Explanation: The expression (x < y) evaluates to true, which is represented as 1 in C++.

Explanation by: Vijay Sangwan
The expression (x < y) evaluates to true, which is represented as 1 in C++.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
133
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vijay Sangwan
Publisher
πŸ“ˆ
93%
Success Rate