How does closure work in swift?



How does closure work in swift?..

Answer / Prem Narayan Kharwar

In Swift, a closure is a self-contained block of functionality that can be passed around and used in your code. It captures and stores references to any constants and variables from the context in which it is defined.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Swift Interview Questions

What is difference between xcode and swift?

1 Answers  


What are initializer in swift?

1 Answers  


What is lazy loading in ios swift?

1 Answers  


Is swift written in c++?

1 Answers  


How to pass the data between view controllers?

1 Answers  


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

1 Answers  


How can you write a multiple line comment swift?

1 Answers  


Explain the difference between let and var in swift programming?

1 Answers  


What is the difference between swift and xcode?

1 Answers  


What is the use of static keyword in swift?

1 Answers  


How will you connect ui?

1 Answers  


What do you mean by initialization?

1 Answers  


Categories