Comment on Today's Coding Interview GameparentComments−thornkin15yAssuming you mean for (int i = 0; ; ) {} that is legal syntax. Perhaps I'm dull, but what is the error?−lunaru15yI think the point was that in C(89) you need to declare all variables at the beginning of the scope block.
Comments
Assuming you mean for (int i = 0; ; ) {} that is legal syntax. Perhaps I'm dull, but what is the error?
I think the point was that in C(89) you need to declare all variables at the beginning of the scope block.