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

Explanation: The logical NOT operator (!) returns false (0) if the operand is non-zero.

Explanation by: Priyanka Tomar
The logical NOT operator (!) returns false (0) if the operand is non-zero.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
117
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Priyanka Tomar
Publisher
πŸ“ˆ
99%
Success Rate