I know C99 allows declarations to be mixed with code and not only at the beginning, but I’m trying to find where in ISO/IEC 9899:1999 it is written – could you point me to the section(s) I should search?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The change is mentioned in the (non-normative) Forward, page xii, as “mixed declarations and code”. (IMHO, declarations are “code”; it should have said “mixed declarations and statements”.)
It’s defined in the grammar for a compound-statement in 6.8.2:
The corresponding grammar in the C89/C90 standard was: