單項選擇題

若有定義:intx;以下不會產(chǎn)生死循環(huán)的是()

A.for(;(x=getchar())!=’\n’;)
B.while(1){x++;}
C.for(i=10;;i++)
D.for(;;x+=1)

微信掃碼免費搜題