View Single Post
Newbie Member
29Jan2008,03:32  
humhaingaurav's Avatar
Yes that's correct. However, if you look at it from the C++ point of view then pre increment has higher precedence. And since we are doing multiple mathematical operations in the ouput statement, so when it comes to pre increment and << (which is bitwise left shift) it gives higher precedence to pre-increment and therefore it first executes ++ and then it outputs a. Therefore, it will always give result ..,..,14,14