error when using Dev-C++ to write a C language program:
[Error] ‘for’ loop initial declarations are only allowed in C99 or C11 mode
Declaring variables in a for loop is only allowed in
C11 mode, and you need to select
C99 as the language standard under
Tools/complier option/code generation.