我想的结果是6 3*2
#include <stdio.h>
int main()
{
/* Write C code in this online editor and run it. */
float x=1,y;
y=++x*++x;
printf("%f",y);
return 0;
}
这个表达式具体详细怎么一步步赋值的希望有朋友能解释一下
应该是先算两个 ++ 运算;
++x → x = 2
++x → x =3
y=++x*++x = 3*3 = 9
x = 3
#include <stdio.h>
int main()
{
/* Write C code in this online editor and run it. */
float x=1,y;
y=++x * ++x;
printf("%f",y);
printf("\n%f",x);
return 0;
}