Variable declaration reset: Difference between revisions

→‎{{header|C}}: Added a caveat to comment.
m (→‎{{header|C}}: oops 1 -> 0)
(→‎{{header|C}}: Added a caveat to comment.)
Line 62:
return 0;
}</lang>
<small>(Note: Obviously the <code>for (int i=0, prev</code> needs the outer i and the inner prev removed, and the same "int" added to the second loop, for it to compile cleanly though it only does so under C99 (or later) as for loop initial declarations are not allowed in C89/90.)</small>
{{out}}
<pre>
9,476

edits