An error describes any issue that arises unexpectedly that causes a program to not function properly. In general, there are three types of errors that occur in a computer program. Syntax Error, Logical Error and Runtime Error.
SYNTAX ERROR
A syntax error is an error in the syntax due to violation of rules of whatever language program is being written. These are sometimes caused by simple typing mistakes.
LOGIC ERROR:
In computer programming, a logic error is a bug or error in planning the program’s logic. They do not cause the program to crash or simply not work at all, they cause it to “misbehave” in some way, rendering wrong output of some kind.
RUNTIME ERROR:
A runtime error is a program error that occurs when a program is run on the computer and the result are not achieved due to some misinterpretation of a particular instruction. The code doesn’t have any syntax or logic error but when it executes it cannot perform specific task.