Off By One

What is Off By One?


1.

Off by one or OBO is a common error in computer program whereby a loop executes one time too few or too many. It occurs most commonly with complex vector or matrix scans.

Programmer 1: This program doesn't work. Take a look and see if there's anything wrong.

Programmer 2: Oh, this for loop is OBO. You aren't scanning the whole array.


89

Random Words: