A

Admin • 828.03K Points
Coach

Q. What will this code print?

Code:
var x = 10
x += 5
print(x)
  • (A) 5
  • (B) 10
  • (C) 15
  • (D) 20
  • Correct Answer - Option(C)
  • Views: 11
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
The value of `x` is increased by 5, resulting in 15.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.