How to “goto” into different function in c?
问题 Basically I am trying to simulate assembly code in C. Here is the C code: int main() { test(); main_next: printf("Hello, World!"); } void test() { goto main_next; } Trying to compile this code (Linux 32 bit, gcc 4.6.3), I got this error: error: label ‘main_randomtag_next’ used but not defined Does anyone know how to do this kind of inter-procedural goto in C? Thank you! 回答1: But what about the children? stack? goto between functions doesn't make any sense if you think about the stack. What