C does not allow it
C11dr 6.8.5 Iteration statements 3
"The declaration part of a for
statement shall only declare identifiers for objects having storage class auto
or register
".
(not static
)
Typically code would not benefit form being able to have an iterator that is static
.
storage-class-specifier:
typedef
extern
static
_Thread_local
auto
register