Logical Error
- Defintion of term
- A logical error in a program is an error were the instructions given
in the program do not accomplish the intended goal.
- Analogy
- "Get me a cup of
coffee." is a logical error when the person intended to ask for a
cup of tea.
- Example
- In computer programs, this error can occur in many
different forms. A simple example is when a programmer assigns the
wrong value to a variable.
These errors are very difficult to
track down because the compiler can not provide assistance.