Hi everyone,

I would like to ask
you what you think about the initialization of iterative variables in for loops. I know that present code style does not allow it. But how I recognized, we use C99, and this feature is here now.

(example)
Instead of:

# int i;
# for (i = 0; ...)

we could write:
# for (int i = 0; ...)

I see
an advantage in limiting the validity of such variables. That means higher code readability. Disadvantages I searched but did not find.

Regards

Petr