以下代码将打印出d的值是: int a = 10 ...
发布于 2022-03-02 17:03:25
以下代码将打印出d的值是:
int a = 10 __block int b = 20 void (^testBlock)(int) = ^(int c){ int d = a + b + c NSLog(@"d=%d", d) } a = 20 b = 40 testBlock(30)
登录后免费查看答案
关注者
0
被浏览
36