A

Admin • 828.03K Points
Coach

Q. What will be printed?

Code:
int x = 10;
Console.WriteLine(x > 5 ? "Yes" : "No");
  • (A) Yes
  • (B) No
  • (C) True
  • (D) False

Explanation by: Admin
Ternary operator returns 'Yes' because condition is true.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.