P

Priyanka Tomar • 35.28K Points
Coach

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

  • (A) 0
  • (B) 1
  • (C) 10
  • (D) 20
  • Correct Answer - Option(A)
  • Views: 52
  • Filed under category C++

Explanation by: Priyanka Tomar
The greater-than-or-equal-to operator (>=) returns false (0) if the first operand is not greater than or equal to the second.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics