What is use of question mark ? in Swift?

Shivendra
Shivendra

Posted On: Dec 17, 2020

 

Question marks ? in Swift, is a way that lets you indicate the possibility that a value might be absent for any type at all, without the need for special constants.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    HCL IOS Developer Interview Questions

    What is SwiftUI?

    SwiftUI is a framework to build User Interfaces (UI) for iOS apps entirely with Swift code, using a novel declarative approach. Take Free : IOS Swift MCQ Exam...

    HCL IOS Developer Interview Questions

    What are high order functions in swift?

    The high order functions in swift are as followsMap Filter Sorted Reduce Chaining Contains AllSatisfy RemoveAll CompactMap FirstIndex and LastIndex ...

    HCL IOS Developer Interview Questions

    What is a self in Objective c?

    In Objective-C, the self is a special variable, in an instance method that refers to the receiver (object) of the message as well as invoking the method, while in a class method the self will indicate...