off-by-one error
Also found in: Wikipedia.
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.
This article is provided by FOLDOC - Free Online Dictionary of Computing (foldoc.org)
Copyright © 2003-2025 Farlex, Inc
Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.