#include<stdio.h>
#include<stdlib.h>//应用exit必须要先声明
int text();
int main()
{
printf("main 1\n");
text(); //此条函数的exit(0)让程序终止了
printf("main 2\n");
return 0;
}
int text()
{
printf("text 1\n");
exit(0);
printf("text 2\n");
return 0;
}
#include<stdlib.h>//应用exit必须要先声明
int text();
int main()
{
printf("main 1\n");
text(); //此条函数的exit(0)让程序终止了
printf("main 2\n");
return 0;
}
int text()
{
printf("text 1\n");
exit(0);
printf("text 2\n");
return 0;
}