goto.c
#include <stdio.h>
int main()
{
int a = 2;
there:
a += 2;
if (a > 10)
{
goto end;
}
else
{
goto there;
}
end:
printf("end");
}
转载请注明转自www.hylab.cn,原文地址:C语言开发示例:15. goto语句
goto.c
#include <stdio.h>
int main()
{
int a = 2;
there:
a += 2;
if (a > 10)
{
goto end;
}
else
{
goto there;
}
end:
printf("end");
}
一个来自三线小城市的程序员开发经验总结。