留下點回憶
posted on 2012-07-31 12:33 笨笨 閱讀(740) 評論(1) 編輯 收藏 引用
I am wrong! 有個問題請教下,我從C++語言上看到,說數組內存地址是編譯時分配的,但我寫了個TEST,只編譯一次,每次RUN結果都不一樣喲,我不理解。 0xbfb0f444 a.out 0xbfbc70c4 a.out 0xbff311e4 #include <iostream> using std::cout; using std::endl; int main() { int art[][4] = {1,2,3,4,5,6,7,8,9,10,11,12}; cout << art << endl; } 回復 更多評論
Powered by: C++博客 Copyright © 笨笨