Variable declaration reset: Difference between revisions

m
→‎{{header|C}}: Seem to have lost a semi-colon.
m (→‎{{header|C}}: Corrected program comment.)
m (→‎{{header|C}}: Seem to have lost a semi-colon.)
Line 53:
 
/* Now 'gprev' is used and reassigned
each time around the loop producing the desired output. */
for (i = 0; i < 7; ++i) {
int curr = s[i];
if (i > 0 && curr == gprev) printf("%d\n", i);
gprev = curr;
}
 
9,490

edits