不同系統下連續申請內存的地址變化的測試 C++

     ~~~~     無聊寫了一個小測試,在windows下使用vs編譯,和gcc編譯的C++程序,內存地址分配上會有什麼差異,還有和linux上gcc編譯的差異。 先附上代碼,外加結果: #include <string> #include <stdio.h> #include <stdlib.h> void printf_test_address(int* _val, const ch
相關文章
相關標籤/搜索