In this point, it is the same.
In other words
Code:
for(i = 0 ; i < 5 ; ++i)
is the same (for us) with
Code:
for(i = 0 ; i < 5 ; i++)
Recall, that in the 1st piece of code, the incremental operator is prefix and in the 2nd, postfix!
In order to take a smell of what this means, consider this simple example.
Code:
#include <stdio.h>
int main(void)
{
int i = 0 ;
// First print i and then increment i
printf("%d\n", i++);
// First increment i and then print i
printf("%d\n", ++i);
return 0;
}
First think what the output will be and then run the code to test your thought.
Notice that incremental (or decremental) operators can be a caveat. If you are not sure if it is correct to use it in a line of code, avoid it.
I declared variable "i" in the for loop. In other words, I initialized this variable in the scope of the for loop. As a result, this variable leaves inside the for statement and its body only.