iOS Swift - Swift Language Essentials
Identify the error in this Swift code:
struct Person {
var name: String
}
var p1 = Person(name: "Alice")
p1.name = "Bob"struct Person {
var name: String
}
var p1 = Person(name: "Alice")
p1.name = "Bob"15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions