#include<stdio.h>
int FUNC(void);
void func1(void);
void func2(void);
void func3(void);
int i=0;
int main(void)
{
FUNC();
return 0;
}
int FUNC(void)
{
func1();
if(1) return -1;
func2();
func3();
}
void func1(void)
{
printf("the frist core \n");
}
void func2(void)
{
printf("the second core \n");
}
void func3(void)
{
printf("the thrid core \n");
}
/********************************************************************************************************************************************************************
结果:
the frist core
结论:当if条件为真实,执行的return -1,直接跳出了FUNC函数,不会继续接下来的函数
******************************************************************************************************************************************************************/