你可能感兴趣的试题
语法错误 静态的语义错误 词法错误 动态的语义错误
int i=100;
while(1)
i=i%100+1;
if(i>100)break;
for(;;); int k=1000;
do++k;while(k>=1000); int s=36:
while(s);--s;
int i=100; while(1) i==i0+1; if(i>100) break; for(;;); int k=10000; dok++;while(k>10000); int s=36; while (s) --s;
int i=100; for(;;) {i=i%10+1; if(i>10)break; } while(1); int k=0; do{++k;}while(k<=10); int s=12; while(s); --s;
int i=100; while(1) i=1%100+1; if(i>100) break; for(;;); int k=10000; dok++; while(k>10000); int s=36; while(s) --s;
int i=100;
while(1)
i=i%100+1;
if(i> 100)break;
for(;;); int k=1000;
do++k while(k>=1000); int s=36;
while(s);--s;
int i=100;
while(1)
i=i%100+1;
if(i>100)break;
for(;;); int k=10000;
dok++;while(k>10000); int s=36;
while(s)--s;
55 56 程序错误,没有输出 循环条件永远为真,死循环
int i=100; for(::); while(1) i=i%100+1: if(i>100)break; int k=10000; dok++;while(k>10000); int s=36: while(s)--s;
int i=100;
while(1)
i==i0+1;
if(i>100) break;
for(;;); int k=10000;
dok++;while(k>10000); int s=36;
while (s) --s;
程序无法跳出循环 程序不会出现死循环 用EXIT可跳出循环 用LOOP可跳出循环
int i=100; for(::); while(1) i=i%100+1: if(i>100)break; int k=10000; dok++;while(k>10000); int s=36: while(s)--s;
int i=100; while(1) { i=i%100+1; if(i>100)break; } for(;;); int k=10000; do{k++;}while(k>10000); int s=36; while(--s;
While循环执行12次 循环体语句执行一次 循环是死循环 循环体语句一次也不执行
int i=100; for(::);
while(1)
i=i%100+1:
if(i>100)break;
int k=10000;
dok++;while(k>10000); int s=36:
while(s)--s;
int i=100; while(1) { i==i0+1; if(i>100) break; } for(;;); int k=10000; do{k++;}while(k>10000); int s=36; while (s) --s;
int i=100; while(1)i=i%100+1; if(i>100) break;for(;;); int k=1000; do++k while(k>=1000); int s=36; while(s);--s;
55 56 程序错误,没有输出 循环条件永远为真,死循环
55 56 程序错误,没有输出 循环条件永远为真,死循环