float y=4.6; y++=y+1 求结果.. 我这样写对么? 为啥报错.?应该怎么改?求指教
#include<stdio.h>
int main()
{
float y= 4.6;
(y++) = (y+1);
printf("y=%f\n",y);
return 0;
}
报错:
root@super-X10DAi:/home/super/workspace/Equation# gcc equation.c
equation.c: In function ‘main’:
equation.c:5:11: error: lvalue required as left operand of assignment
(y++) = (y+1);
^
求高手指正.....