C语言实现三种死循环

1、while语句

while(1)
{
printf(“死循环”);
}

2、for语句

for(;;)
{
printf("死循环”);
}

3、goto语句

top:

goto top;

猜你喜欢

转载自blog.csdn.net/xiaopeng_csdn/article/details/83865468