At my university, my CS1 teacher has advised us to not use for(int i = 0; [code]; i++)
, because declaring a variable in line with a for loop will not compile on C versions prior to C99. As a computer science major, is there any legitimate reason for this? As it was standardized nearly two decades ago, I would think any still supported / developed software would have no trouble implementing this.
From my browsing it appears that extremely low level hardware development such as the Linux kernel may use a C90-ish codebase but that seems to be a very fringe case.