A

Admin • 670.22K Points
Coach

Q. What will the following code output?

Code:
let a = 10
let b = 20
print(a > b)
  • (A) true
  • (B) false
  • (C) nil
  • (D) error
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
`a > b` is false because 10 is not greater than 20.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.