3 ms·
Variables can only be declared at the beginning of a block in C89. In my opinion that's the main difference between strict C89 and C99. MSVC is very strict abo
by user5994461 6y ago
Variables can only be declared at the beginning of a block in C89. In my opinion that's the main difference between strict C89 and C99.
MSVC is very strict about that and there's no workaround to allow it.
- whizzter 6y agoThat's not really a compiler limitation though (since in C++ mode it will happily handle it) but rather a validation/mode thing. Since they now support C11, I'm sure that part is removed if you select C11 mode?