Swift - Variables and Constants
Which of the following is the correct syntax for explicit type annotation in Swift?
var age: Int = 25 matches this syntax exactly. The other options have misplaced colons or missing punctuation.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions