东京教父中文百度云:C语言中exit(0)是什么意思?
来源:百度文库 编辑:高考问答 时间:2024/07/08 16:36:06
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);
}
#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);
}
正常退出
推出程序
退出