I have a piece of code
#include <bits/stdc++.h>
using namespace std;
typedef long long ll ;
int main()
{
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0) ;
int i, j;
i = j = 5;
j = i++ + (i*10);
cout<<i<<" "<< j <<" "<<i++;
}
Output of code for c++ 17 is : 6 65 6 Output of code for c++ 11 is : 7 65 6
Why such a difference ?