i is set to 2, then incremented twice, so its value is 4 and then passed to the function printf() as second, third and fourth parameter. You shouldn't use more than one incrementation of a variable in a single statement and none at all if u use that variable twice in an statement, and that's why I can't exactly tell you why it behaves like it does.
Обсуждают сегодня