为什么c是死循环,什么是死循环?,谢谢
5.47以下是死循环的程序段是______A)for(I=1;;){if(++I%2==0)continue;if(++I%3==0)break;}B)I=32767;D...
5.47以下是死循环的程序段是______
A) for (I=1; ; )
{if (++I%2= =0) continue;
if (++I%3= =0) break;
}
B) I=32767;
Do {if (I<0) break; } while (++I);
C) for (I=1; ; ) if (++I<10 ) continue;
D) I=1;
While (I- -);
答案:C 展开
A) for (I=1; ; )
{if (++I%2= =0) continue;
if (++I%3= =0) break;
}
B) I=32767;
Do {if (I<0) break; } while (++I);
C) for (I=1; ; ) if (++I<10 ) continue;
D) I=1;
While (I- -);
答案:C 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询