What is nil-coalescing operator?



What is nil-coalescing operator?..

Answer / Ankur Bhardwaj

The nil-coalescing operator (??) in Swift returns the left operand if it’s not nil; otherwise, it returns the right operand.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Swift Interview Questions

What is the difference between nil and none in swift?

1 Answers  


Is apple using swift?

1 Answers  


What is the synonym of swift?

1 Answers  


How many types of closures are there in swift?

1 Answers  


Is swift worth learning 2019?

1 Answers  


How can you declare a variable in swift?

1 Answers  


What are delegates swift 4?

1 Answers  


What is data structure in swift?

1 Answers  


How many access levels are present in swift?

1 Answers  


What is forced unwrapping?

1 Answers  


How to call objective-c code from swift?

1 Answers  


What is clean swift architecture?

1 Answers  


Categories