69,382
社区成员
发帖
与我相关
我的任务
分享
int * p;
if((p = (int *)malloc(n*sizeof(int))) == NULL)
{
printf("Not able to allocate memory");
exit(1);
}
主函数return等同于程序中任何地方调用exit。
exit(1);//退出整个程序,与free屋任何瓜葛;
跟free有关?
//
可以用return吗?//退出当前函数,假如是递归,返回到上一层。