I know that this question is similar to this one, but I feel like I don't fully understand C99 standard. I want to ask about parameter evaluation itself, for example:
int index = 0;
sprintf(somebuf, "some-text-%d", index++);
So, it seems like index is not incremented before function call (I got some-text-0 as a result). Is it expected behavior?