Semantic Error
- Definition of term
- A semantic error in a program is an error where the meaning of some
aspect of a program is nonsense.
- Analogy
- "Time is orange." is a natural
language semantic error. Though the sentence is well formed, it is
nonsense.
- Example
- In computer languages, similar errors can be made. For
example a function may be declared to return an integer in one place
on a program, and declared to return a complex data type in
another.