(单选题)
下面程序段不是死循环的是()
A int j=100; while(1){j=j%100+2;if(j>100)break;}
B for( ; ; );
C int k=0; do{ ++k;}while(k>=0);
D int s=36; while(s);--s;
正确答案
答案解析
略
A int j=100; while(1){j=j%100+2;if(j>100)break;}
B for( ; ; );
C int k=0; do{ ++k;}while(k>=0);
D int s=36; while(s);--s;