Off-by-one error




<programming> An exceedingly common error induced in many ways, such as by starting at zero when you should have started at one or vice-versa, or by writing "< N" instead of "<= N" or vice-versa.

Often confounded with fencepost error, which is properly a particular subtype of it.

[Jargon File]



< Previous Terms Terms Containing off-by-one error Next Terms >
ODMG
ODP
ODSA
ODT
OEM
fencepost error
obi-wan error
walk off the end of
Office
Office By Example
Office Workstations Limited
Official Production System
off-line