返回首页   进站必读


4.8 goto

goto用于跳转到标签,但是不推荐使用,使用过多容易引起逻辑混乱。

int main(int argc, char *argv[])
{
	start: printf("hello world!\n"); 
	...
	...
	goto start;

	return 0;
}

goto可以直接跳转到start标签处。