I am getting different answers for the same c++ code but in different versions of c++ i.e. c++14 and c++17
What are the changed made into c++17 from c++14 because of which I am getting different answers ?
(Specifically related to this question)
#include<iostream>
using namespace std;
int main()
{
int i = 1;
cout << i++ <<" "<< i-- << " " << i--;
return 0;
}
/*
* Output in c++17
* 1 2 1
*
* Output in c++14
* -1 0 1
*
*/