char *text ="nicee";
char again[] =
"jacky";
NSArray *newdatas = @[@"first",@"second"];
NSLog(@"again=%s", again);
NSLog(@"texzt=%s", text);
printf("%c, %c\n", text[1], again[1]);
printf("%s, %s\n", text, again);
void (^testBlock)(void) = ^{
printf("%s\n", text);
// printf("%s\n", again);
NSLog(@"newdatas[1]=%@", newdatas[1]);
};
testBlock();
运行上面的代码, 会发现代码运行正常,但如果把注掉的一行代码打开,则会编译......
阅读全文