int k=10; while (k=0) k=k-1,while循环10次吗

来源:学生作业学帮网 编辑:学帮网 时间:2024/06/25 09:05:18

int k=10; while (k=0) k=k-1,while循环10次吗

0次
while(k=0)k=k-1;
k=0
先给中赋值再判断k
while(k)相当于是while(k!=0)这里k为0,所以为假,退出