While using cout if the statement is cout<<E1<<E2<<E3; then there is no guarantee that the E1 E2 and E3 will be executed in the same order they are written. 
What can I do to make sure they execute in same order they are written without writing another cout statement or endl in between?
 
     
    