Computers often start counting at 0, so if the coder then takes the returned 4 for example and takes it as 4, he forgets the 0, being 5 total.
Had this happening several times in my tasting notes program as well :\
Jeroen Kloppenburg wrote:Probably the well known 'off-by-one' bug many coders face more then a single time in their career
Computers often start counting at 0, so if the coder then takes the returned 4 for example and takes it as 4, he forgets the 0, being 5 total.
Had this happening several times in my tasting notes program as well :\