MCQs > IT & Programming > Cocoa Programming For Mac OS X > What will be the output of the following code? NSRect rect = NSMakeRect(0, 0, 10, 10); NSRect *rect2 = malloc(sizeof(*rect2)); if(!rect2) { NSLog(@'Not enough memory.'); exit(EXIT_FAILURE); } *rect2 = rect; printf('%d\n', rect.size.width);

Cocoa Programming For Mac OS X MCQs

What will be the output of the following code?

NSRect rect = NSMakeRect(0, 0, 10, 10);
NSRect *rect2 = malloc(sizeof(*rect2));
if(!rect2) {
    NSLog(@"Not enough memory.");
    exit(EXIT_FAILURE);
}

*rect2 = rect;

printf("%d\n", rect.size.width);

Answer

Correct Answer: 0

Explanation:

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

Cocoa Programming For Mac OS X Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Cocoa Programming For Mac OS X Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it