MCQs>IT & Programming>Objective C>What will be logged? int x = 1; __block int y = 1; void (^test)(void) = ^{ NSLog(@"%i, %i", x, y); }; x = 2; y = 2; test();
Objective C MCQs
What will be logged? int x = 1; __block int y = 1; void (^test)(void) = ^{ NSLog(@"%i, %i", x, y); }; x = 2; y = 2; test();
Answer
Correct Answer: 1, 2
Explanation:
Note: This Question is unanswered, help us to find answer for this one