What is difference between single and double ? in Swift?
Difference between single and double ? in Swift:
Single ? in Swift is used to denote an optional value either contains a value or contains nil to indicate that the value is missing.
double ?? in swift is called nil coalescing operator that finds if optional has no value then it uses a default value.
Comments
Post a Comment