[英]unable to predict the output when we use do-while loop and write constants in while loop seperated by comma
int i=40; //defined
int main()
{
do
{
printf("%d",i++);
}while(5,4,3,2,1,0); //what does this do ?
return 0;
}
**O/P=40**
我无法弄清楚以上代码中的while循环是做什么的.....
我知道while循环至少执行一次。由于while循环的O/P=40
条件评估为false,但是我无法弄清楚怎么办?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.