A

Admin • 833.24K Points
Coach

Q. What’s wrong?

Code:
(x = 4 && y = 5) ? (a = 5) ; (b = 6);
  • (A) the question mark should be an equal sign
  • (B) there are too many variables in the statement
  • (C) the conditional operator is only used with apstrings
  • (D) the first semicolon should be a colon
  • Correct Answer - Option(C)
  • Views: 30
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.