天津儿童摄影排行榜:C语言中exit(0)是什么意思?

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/09 17:00:21
C语言中exit(0)是什么意思?
#include<stdio.h>
main()
{ FILE *fp; char str[100]; int i=0;
if((fp=fopen("test","w"))==NULL)
{ printf("Can not open the file\n");
exit(0);
}

正常退出

推出程序

退出