What are the blocks? How will you use them?
Answer / Ramkaran
Blocks, also known as closures, are anonymous functions in Objective-C that can be used to encapsulate functionality and pass it around as a first-class object. They can be used for various purposes, such as event handling, concurrent programming, or simplifying complex logic.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is difference between c and objective c?
Which is better swift or objective c?
What is enum in objective c?
Is objective c, a dynamic language? True/false, explain.
When will you use nsarray and nsmutablearray? Which one is faster?
Distinguish between @synthesize and @dynamic in objective –c?
What are blocks and how are they used?
What is enum constant?
What is single inheritance in objective-c?
What is the difference between atomic and nonatomic synthesized properties?
What is block in objective c?
How to initialize nsmutabledictionary in objective c?