堆與棧的內存地址相對高低

  看下面一段代碼       #include<bits/stdc++.h>   using namespace std;   int main()   {   int a,b; //棧   printf("%x\n%x\n",&a,&b);   int *c = new (int ); //堆   printf("%x\n",c);   }   運行結果: 我也有這樣的疑問,記得學習的計算機組
相關文章
相關標籤/搜索