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;
}

  

posted @ 2014-05-16 16:58  庚武  Views(174)  Comments(0Edit  收藏  举报