请教各位大神一个很基础的问题
VC6.0下编译执行以下代码(debug版)
int main()
{
int i=3;
int d = (i++) * (i++);
printf("d = %d", d);
return 0;
}
为什么输出d的值是9而不是12
[解决办法]
请看http://topic.csdn.net/u/20100329/23/2fc2d30e-3c79-4f55-ada6-cd7b3bbed3ba.html
发布时间: 2012-10-16 09:57:37 作者: rapoo
请教各位大神一个很基础的问题
VC6.0下编译执行以下代码(debug版)
int main()
{
int i=3;
int d = (i++) * (i++);
printf("d = %d", d);
return 0;
}
为什么输出d的值是9而不是12
[解决办法]
请看http://topic.csdn.net/u/20100329/23/2fc2d30e-3c79-4f55-ada6-cd7b3bbed3ba.html