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
# | User | Rating |
---|---|---|
1 | tourist | 3764 |
2 | slime | 3592 |
3 | maroonrk | 3535 |
4 | Benq | 3513 |
5 | jiangly | 3509 |
6 | ecnerwala | 3508 |
7 | MiracleFaFa | 3466 |
8 | ksun48 | 3452 |
9 | Um_nik | 3426 |
10 | greenheadstrange | 3393 |
# | User | Contrib. |
---|---|---|
1 | awoo | 192 |
2 | -is-this-fft- | 191 |
3 | Monogon | 183 |
4 | YouKn0wWho | 182 |
5 | Um_nik | 181 |
6 | antontrygubO_o | 173 |
7 | maroonrk | 168 |
8 | SecondThread | 165 |
8 | errorgorn | 165 |
10 | kostka | 164 |
C++ 14 vs C++ 17
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
Name |
---|