goto.c
#include <stdio.h>
int main()
{
int a = 2;
there:
a += 2;
if (a > 10)
{
goto end;
}
else
{
goto there;
}
end:
printf("end");
}
goto.c
#include <stdio.h>
int main()
{
int a = 2;
there:
a += 2;
if (a > 10)
{
goto end;
}
else
{
goto there;
}
end:
printf("end");
}
一个来自三线小城市的程序员开发经验总结。