Find the line where the loop condition causes it to miss the last element of the array.
A loop meant to print every item in a 5-element array only prints 4 of them.
Ready to try it?
Create a free account and try "Fix an Off-by-One Loop Bound" free for 7 days, no card required. Earn 120 XP and track your internship progress.
Already have an account? Sign in