[单选题]intk=0;while(k=1)k++;while循环执行的次数为

A
无限次
B
有错误,不能执行
C
执行两次
D
执行一次
正确答案:A
题目解析
while(k = 1)相当于while(1)
扫描二维码
免费搜题、免费刷题、免费查看解析