+ 1

{ int x=5,y=9,u=30; int r; r= ++x - y-=3 + u*=2 +u&y; cout <<r <<endl; friends tell me what is error and why???

4th Feb 2019, 5:49 PM
Noor
Noor - avatar
2 Antworten
0
If it c++, it can't compile "a = b-=x", or "a = b+=x" and so on. My compilator says: "lvalue required as left operand of assignment" Just split operations and it will work.
4th Feb 2019, 6:28 PM
Дмитрий Мазыло
Дмитрий Мазыло - avatar
+ 1
Thank u
4th Feb 2019, 6:53 PM
Noor
Noor - avatar