摘要:
#include<iostream>
using namespace std; int main()
{ uint32_t size; cin >> size; int arr[size]; printf("size address::%x\n", &size); printf("array address::%x\n", &arr[0]); return 0;
}这段代码,可以编译通过。可以在栈上开辟一个运行时才知道大小的数组。(参考:http://ericwang.github.com/c_cpp/2010/0 阅读全文
posted @ 2012-08-27 19:27
junfeng_feng
阅读(658)
评论(0)
推荐(0)
浙公网安备 33010602011771号