C++ 14 vs C++ 17

Revision en1, by CodeSlayer007, 2020-04-16 20:51:34
int i,j;
    i = j = 5;
    j = i++ + (i*10);
    cout<<i<<" "<< j <<" "<<i++;

The above code is giving two different output in C++14 and C++17.Can anyone explain why?? In c++14 its showing 7 65 6 In C++17 its showing 6 65 6

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English CodeSlayer007 2020-04-16 20:51:34 266 Initial revision (published)