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 | Benq | 3813 |
2 | tourist | 3768 |
3 | maroonrk | 3570 |
4 | Radewoosh | 3535 |
5 | fantasy | 3526 |
6 | jiangly | 3523 |
7 | Um_nik | 3522 |
8 | orzdevinwang | 3441 |
9 | cnnfls_csy | 3427 |
10 | zh0ukangyang | 3423 |
# | User | Contrib. |
---|---|---|
1 | awoo | 180 |
2 | -is-this-fft- | 179 |
3 | nor | 169 |
4 | Um_nik | 168 |
5 | SecondThread | 164 |
6 | adamant | 163 |
7 | maroonrk | 162 |
8 | kostka | 161 |
9 | YouKn0wWho | 158 |
10 | errorgorn | 155 |
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 |
---|