It is also possible to create pointers to arrays, as shown below: int *p; int i; p = (int *)malloc(sizeof(int[10])); for (i=0; i<10; i++) p[i] = 0; free(p);.
確定! 回上一頁