MCQs > IT & Programming > Objective C > What can you say about the code: NSString * str = [NSString stringWithFormat:@""]; [str release];

Objective C MCQs

What can you say about the code: NSString * str = [NSString stringWithFormat:@""]; [str release];

Answer

Correct Answer: It will cause the string to be released twice with undefined consequences when the surrounding autorelease pool is emptied

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