+ 2
when int i; i=4; cout<<++i<<i++; plz say the output and how it works?
4 Respostas
+ 6
output:
64
because compiler reads from right to left during cascading....
i++ is 4
and I becomes 5
++I is 6....
hence output 64
0
Ya its 64.. During cascading from right to left
- 2
according to me I think its 55
- 2
because increments do have a concept of pre and post execution ..which means that if u are using pre-increment means ++I this is executed before the statement execution and just opposite with the post increment means increment after the statment s execution..