gcc支持的标签
#include <stdio.h> #include <time.h> int main(/*int argc, char const *argv[]*/) { void * target; time_t now = time(NULL); if(now & 1) target = &&odd; else target = &&even; goto *target; odd: printf("now is odd second: %ld,NULL=%d\n", now,NULL); return 0; even: printf("now is even second: %ld,NULL=%d\n", now,NULL); return 0; }