I am new to C, and I believe that it does not matter, no matter how it is done, but I noticed that in most examples for loops in see it is written, as in the following example:
int i;
for(i = 0; i < 10; i++){
}
Instead, as I originally introduced for loops in Java:
for(int i = 0; i < 10; i++){
}
Is there a reason for this?
Marko source
share