怎样申请内存(malloc)构造一个指针数组?

如题所述

第1个回答  2013-09-02
/* C:*/
#include <stdlib.h>
int *(*pointer_array);
pointer_array = (int * *)malloc(10);
/* C++:*/
int * *pointer_array;
pointer_array = new (int *)[10];
相似回答