知识库
C语言开发示例:15. goto语句
2025-02-01 20:04:31 李腾 1 次阅读
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语句