在我的代码中:
char *str[] = {"forgs", "do", "not", "die"}; printf("%d %d", sizeof(str), sizeof(str[0]));
我得到了输出12 2,所以我怀疑是:
12 2
str
str[0]
c pointers sizeof
c ×1
pointers ×1
sizeof ×1