Welcome to G4EF.

Regarding the code snippets that you post in the threads please do use bb code to format the code snippets.

Because it calculates right to left.

See the out put of the following code
Code: CPP
main()
{
    int a=2;
    printf("%d",++a);
    printf("%d",a++);
    printf("%d",a);
}