第六天 IOS 内存空间的开辟

char *str;

str=(char *)malloc(100*sizeof(char));

int * arr;

arr=(int*)malloc(100*sizeof(int));

释放内存使用的是free(str);

posted @ 2016-01-24 23:34  醉孟子  阅读(110)  评论(0)    收藏  举报