Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error: lvalue required as decrement operand
- cout << --x++ << endl;
- ^~
- #include <iostream>
- using namespace std;
- int main()
- {
- int x = 8;
- cout << (--x)++ << endl;
- cout << x << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement