杭州千红时代影城:C语言中exit(0)是什么意思?

来源:百度文库 编辑:高校问答 时间:2024/05/11 05:34:20
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);
}

正常退出

推出程序

退出