C++求動態數組長度(windows經過)

vs編譯器 //在首地址前16個字節、即4個類型、單元共128位、前存儲數據是:數組長度 int *p=new int[100]; int size = *(p-4); cout<<size<<endl; 結果:400;
相關文章
相關標籤/搜索