Home > DeveloperSection > Interviews > Main difference between "alloc" and "new"

Posted on    September-30-2015 12:40 AM

 iPhone iPhone  Ios  Objective C 
Ratings:
 1 Answer(s)
  356  View(s)
Rate this:

Tarun Kumar

Total Post:107

Points:535
Posted on    September-30-2015 12:40 AM

“alloc” only creates a new memory location but doesn’t initializes it but “new” works both allocation and initialization.


Don't want to miss updates? Please click the below button!

Follow MindStick