我嘗試了我的系統中的代碼。這是我得到了什麼...... 1)不同的C代碼輸出
#include <stdio.h>
int main()
{
//int a = 10;
printf("%s");
return 0;
}
Output:
1í^áäðPTRhh
2)
#include <stdio.h>
int main()
{
int a = 10;
printf("%s\n");
return 0;
}
Output:
__libc_start_main
我在另一個系統(DIFF編譯器)嘗試。產量不同。 實際上它必須打印堆棧中最高的值。那麼y在哪裏都不是唯一的?
操作系統是32位和64位?它可能是內存管理問題 – Sudantha 2011-01-12 09:02:52
@Sudantha:這與內存管理有什麼關係? – 2011-01-12 09:03:48