Any performance difference will depend on the compiler.
Some small embedded systems have rather simplified compilers that can create slightly different code for one than the other, but without testing it is difficult to guess what might turn out to be โbetterโ (although if I had to guess โblindlyโ, I would choose the first one) .
With compilers on typical desktop / server systems (e.g. gcc, VC ++, EDG) you are likely to get the same results anyway, so choosing between them is just a matter of choosing what you find more readable.
source share