MCQs > IT & Programming > Objective C > Look at below code and provide the reference counter value after it executes:

Objective C MCQs

Look at below code and provide the reference counter value after it executes:

Object *anObj = [[Object alloc] init]; [anObj retain];     [anObj release]; [anObj release];

Answer

Correct Answer: Reference counter will be 0, anObj will be deallocated automatically

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Objective C Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Objective C Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it