Swift - Collections
Identify the error in this Swift code related to collections as value types:
var list1 = ["a", "b"]
var list2 = list1
list2.append("c")
print(list1)var list1 = ["a", "b"]
var list2 = list1
list2.append("c")
print(list1)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions