C语言中跳出while(1)的方法是什么?

如题所述

int i=0;
while(1)
{
if(i==10)
break;
printf("OK");
i++;
}
这里的break就是在i等于10的时候跳出了while(1)这个无限循环
温馨提示:答案为网友推荐,仅供参考
相似回答