Logic error

Updated: 02/04/2024 by Computer Hope
logic error

A logical error or logic error is a condition encountered by a computer program where a result is not logically correct, but is not reported as an error. A program experiencing a logic error is especially dangerous because it may report erroneous results as true. A logic error will not cause the program to crash, so the error is difficult for its developers to identify and resolve.

For those unfamiliar with computer programming, you can think of a logical error like a cake recipe with invalid instructions on how long to bake the cake. The cake creation instructions are correct and can be followed without error. However, because the bake time was incorrect, the cake would either not be fully cooked or be burnt. Not knowing the correct time would make baking the cake correctly difficult or impossible if it was baked for too long. In other words, you still made a cake, but it's probably not edible.

Algorithm, Bug, Dump, Error, Error code, Errorlevel, Logical, Panic, Software terms