Swift - Data Types
What will be the output of this Swift code?
typealias Age = Int let myAge: Age = 30 print(myAge)
typealias Age = Int let myAge: Age = 30 print(myAge)
Age is just another name for Int, so myAge is an integer with value 30.myAge outputs the integer value 30.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions