Using a for
loop without its typical structure (initialization, condition, increment) can be confusing. In those cases, it is better
to use a while
loop as it is more readable.
The initializer section should contain a variable declaration to be considered as a valid initialization.