At my university, my CS1 teacher advised us not to use it for(int i = 0; [code]; i++), because declaring a variable in a line with a for loop would not compile in versions C to C99. As the chief specialist in computer science, are there any legal grounds for this? Since it was standardized almost two decades ago, I think that any supported / developed software will not have problems with this.
It seems in my browser that extremely low-level hardware such as the Linux kernel can use the C90-ish codebase, but this seems like a very random case.
source
share