1.void *malloc(unsigned size int)
int *p;
p=(int *)malloc(n*sizeof(int));
2.void *calloc(unsigned n,unsigned size)
p=(int *)calloc(n,sizeof(int);
3. void *realloc(void *p,unsigned int size)//重新分配
realloc(p,m*sizeof(int));
1.void *malloc(unsigned size int)
int *p;
p=(int *)malloc(n*sizeof(int));
2.void *calloc(unsigned n,unsigned size)
p=(int *)calloc(n,sizeof(int);
3. void *realloc(void *p,unsigned int size)//重新分配
realloc(p,m*sizeof(int));