Swift - Operators and Expressions
Which of the following is the correct syntax to safely access the property
count of an optional string name in Swift?count of an optional string name in Swift??. to access properties only if the optional is not nil.name?.count is correct; name!.count force unwraps; name.count? and name??.count are invalid syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions