Hacker News new | past | comments | ask | show | jobs | submit login

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.




That'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?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: