What happens when the following code executes? Ball *ball = [[[[Ball alloc] init] autorelease] autorelease];

Answer

 

A:

It will crash because itʼs added twice to the autorelease pool and when it it dequeued the autorelease pool calls release more than once.

All ios Questions

Ask your interview questions on ios

Write Your comment or Questions if you want the answers on ios from ios Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---