for Loop
A counted loop: initialise; test; update.
Beginner
for (int i = 0; i < N; i++) sum += a[i]; — the loop variable is scoped to the loop (C99).
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.