goto 所实现的跳转是按顺序执行
#include <stdio.h> int main() { SUCCESS: printf("SUCCESS "); //会被执行到 RET: printf("RET "); //会被执行到 return ret; //会被执行到 }
goto 跳转:
#include <stdio.h> int main() { goto RET; SUCCESS: printf("SUCCESS "); RET: printf("RET "); //会被执行到 return ret; //会被执行到 }