What is the meaning of question mark "?" In swift?



What is the meaning of question mark "?" In swift?..

Answer / Vikash Shukla

In Swift, a question mark (?) is used for optional types. Optionals are variables or constants that may contain a value or may be nil. The question mark helps to indicate this potential absence of a value.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Swift Interview Questions

What are the characteristics of switch?

1 Answers  


What is mutating keyword in swift?

1 Answers  


Why is swift important?

1 Answers  


What is the difference between nil and none in swift?

1 Answers  


Does apple use swift internally?

1 Answers  


What is nil-coalescing operator?

1 Answers  


What are the two main integer types in swift?

1 Answers  


What do you do when you realize that your app is prone to crashing?

1 Answers  


What is tuple? How to create a tuple in swift?

1 Answers  


What is a protocol in swift?

1 Answers  


In swift what is use of backticks while declaring a variable?

1 Answers  


What language is similar to swift?

1 Answers  


Categories