Quote:
Originally Posted by Goblin
c99 allows declaring variables in for loops
I didn't see anywhere that Chem.E had to use c89.For production code I would agree that following c89 would maximize portability but MinGW has pretty good c99 support for stuff like that.
|
D'oh! I meant C89; I forgot to say it. Let me try to clarify: I recommend following the C89 model, even if you're using a C99-capable compiler. You're not really sacrificing anything, and in return you ensure that your code compiles with the widest variety of C compilers (even if that doesn't seem useful right now, it could, further down the road).