指向指針的指針申請動態內存

在《高質量c編程指南》中,提到了 若是函數的參數是一個指針,那麼別期望它能申請動態內存。 代碼以下:web #include<stdio.h> #include<stdlib.h> void GetMemory(char *p,int num); int main() { char* stu=NULL; GetMemory(stu,100); printf("%d\n",
相關文章
相關標籤/搜索