Swift - Functions
Identify the error in this Swift code snippet:
func addTen(_ number: inout Int) {
number += 10
}
addTen(5)Identify the error in this Swift code snippet:
func addTen(_ number: inout Int) {
number += 10
}
addTen(5)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions