在 ARC 下,我知道“堆栈变量是用 nil 初始化的”(文档)。静态常量数组的值呢?这是有道理的,但我找不到官方的说法。例如:
static NSString * const strings[5] = {
[2] = @"value2",
[4] = @"value3",
};
会strings[3]
==nil
吗?
在 ARC 下,我知道“堆栈变量是用 nil 初始化的”(文档)。静态常量数组的值呢?这是有道理的,但我找不到官方的说法。例如:
static NSString * const strings[5] = {
[2] = @"value2",
[4] = @"value3",
};
会strings[3]
==nil
吗?