What is block in swift?



What is block in swift?..

Answer / Vineet Kumar Punia

In Swift, a block is a piece of code that can be passed as an argument to a function or method. It's similar to a function but is defined within curly braces instead of the function keyword.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Swift Interview Questions

What is atomic swift?

1 Answers  


What is static function in swift?

1 Answers  


What is dynamic keyword in swift?

1 Answers  


What is data type in swift?

1 Answers  


What is a tuple in swift?

1 Answers  


Explain any three-shift pattern matching techniques?

1 Answers  


What is the purpose of swift?

1 Answers  


Who invented swift code?

1 Answers  


What is final class in swift?

1 Answers  


Does swift have a garbage collector?

1 Answers  


How can you write multiple line comment?

1 Answers  


What are generics? How to make a method or variable generics in swift?

1 Answers  


Categories