指針轉化爲數組

int a[3]; int* q = (int*)malloc(3 * sizeof(int)); //至關於q[3] //動態分配一個數組,每一個元素都是char* //char* buf[3] int n = 3; char** buf = (char**)malloc(n * sizeof(char*)); //至關於char* buf[3] for (int i = 0; i < n;
相關文章
相關標籤/搜索