What is closure in swift?



What is closure in swift?..

Answer / Pradeep Kumar Yadav

Closure in Swift is a self-contained block of functionality that can be passed around and used in your code. It encapsulates a function along with its environment, which includes any constants and variables captured during its execution.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Swift Interview Questions

What is swift nsarray?

1 Answers  


Explain completion handler?

1 Answers  


Do loops swift?

1 Answers  


Is swift pass by reference?

1 Answers  


How you define variables in swift language?

1 Answers  


what are functions different from methods?

1 Answers  


What will you do if your app is prone to crashing?

1 Answers  


Can you make a property optional?

1 Answers  


What language is similar to swift?

1 Answers  


What are adapter and memento patterns?

1 Answers  


Explain grand central dispatch (gdc).

1 Answers  


What is floating point number in swift? What are the different floating point numbers in swift?

1 Answers  


Categories