Swift - Variables and Constants
Given this code, what is the correct way to swap two mutable variables
a and b in Swift?var a = 5 var b = 10 // Swap a and b here
a and b in Swift?var a = 5 var b = 10 // Swap a and b here
a in temp so it is not lost when overwritten.b to a and then temp to b15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions