Swift - Variables and Constants
What will be the output of this Swift code?
var count = 5 count = 10 print(count)
var count = 5 count = 10 print(count)
count is declared with var, so it can be changed. Initially, it is 5, then reassigned to 10.count, which is 10 after reassignment.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions