+ 3

C++ question , int i=10; cout<<++i*i++;

different codeboard give me different answer please explain me the concept behind.?

24th Mar 2017, 6:14 AM
suyash ajmera
suyash ajmera - avatar
3 ответов
+ 2
The reason is the pre-increment and post-increment operator that u have used. Different compiler compiles it differently and thus u will get different result.
24th Mar 2017, 7:57 AM
Rishabh Agrawal
Rishabh Agrawal - avatar
0
so there is no one way to do it
24th Mar 2017, 11:35 AM
suyash ajmera
suyash ajmera - avatar
- 1
Isnt the answer 132?
28th Mar 2017, 2:55 AM
yydream