Question: What is wrong with this code?
- Use of self inside the closure causes retain cycle.
- You cannot assign a value to closure in this manner.
- You need to define the type of closure explicitly.
- There is nothing wrong with this code.
Answer: The correct answer of the above question is Option A:Use of self inside the closure causes retain cycle.