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
πŸ’¬ Discuss
βœ… Correct Answer: (C) the conditional operator is only used with apstrings

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
215
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
92%
Success Rate