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);
Correct Answer: 0
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Cocoa Programming For Mac OS X MCQ Questions