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
  • 203,559
  • 14
  • 181
  • 302

0 Answers0