A

Admin • 670.22K Points
Coach

Q. What is the result of this expression: `true || false && false`?

  • (A) true
  • (B) false
  • (C) nil
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 1
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
`&&` has higher precedence than `||`, so the expression becomes `true || false`, which is true.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.