0
#include <iostream>
using namespace std;

int main() {
  int x = 0;
  cout << ++x << "   " << x++ << endl;
  return 0;
}

the output is 2 and 0

why is that !?

Jarod42
  • 190,553
  • 13
  • 166
  • 271

0 Answers0