Variable declaration reset: Difference between revisions
Content added Content deleted
(→{{header|C}}: added "for (int i, prev" variant/comment.) |
m (→{{header|C}}: oops, let -> int) |
||
Line 62: | Line 62: | ||
return 0; |
return 0; |
||
}</lang> |
}</lang> |
||
<small>(Note: Obviously the <code>for ( |
<small>(Note: Obviously the <code>for (int i=1, 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.)</small> |
||
{{out}} |
{{out}} |
||
<pre> |
<pre> |