Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

off-by-one error

You are here: irt.org | FOLDOC | off-by-one error

<programming> (Or "Obi-Wan error") 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.

The term zeroth corrects the linguistic off-by-one error of, e.g., referring to the "1st" element of an array whose indexes start from zero.

[Jargon File]

(1998-09-21)

Nearby terms: ODT « OEM « OFA « off-by-one error » Office » office automation » Office By Example

FOLDOC, Topics, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, ?, ALL

©2018 Martin Webb