代码:
for(int i=0;i<5;){ i=i++; printf("%d",i); }
上面的程序无限打印零,这怎么可能?有声明i=i++;。请解释为什么 的值i不增加。
i=i++;
i
c language-concepts post-increment
c ×1
language-concepts ×1
post-increment ×1