为什么我在 Xcode 上得到不同的结果(C 语言)
Why do I get different result on Xcode (C Language)
long number = 100;
printf("the sizeof: %d", sizeof(number));
在Visual Studio中,我得到了结果4。
在 Xcode 中,我得到结果 8.
相同的代码,不同的结果。你能告诉我为什么我得到这个结果吗?
long number = 100;
printf("the sizeof: %d", sizeof(number));
在Visual Studio中,我得到了结果4。 在 Xcode 中,我得到结果 8.
相同的代码,不同的结果。你能告诉我为什么我得到这个结果吗?