+ 1
What will be the output of 10++ + ++20
when i tried running this code it came up error stating "lvalue required as increment operand "
3 Answers
+ 3
Increment operators are to be used with variables, such as an int.
int a = 10, b = 20;
cout << a++ + ++b;
This will work.
+ 3
great!! it did work out..
thanks
0
hahahahahaha