Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. error: lvalue required as decrement operand
  2. cout << --x++ << endl;
  3. ^~
  4.  
  5. #include <iostream>
  6.  
  7. using namespace std;
  8.  
  9. int main()
  10. {
  11. int x = 8;
  12. cout << (--x)++ << endl;
  13. cout << x << endl;
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement