What is the difference between a syntax, logic, and runtime error?
- Steven Belanger
- Oct 23, 2021
- 1 min read
Syntax Error is, as the name suggests, an error in the syntax of a sequence of characters or tokens that are intended to be written in compile-time and basically, a program will not run until the syntax error is corrected. Logic Error is a bug in a program that causes it to operate incorrectly. However, unlike a Syntax error or a runtime error, the program will not crash from a logic error. Runtime Error is a program error that happens while the program is running. A logic error can be a type of runtime error. The program will typically unexpectedly quit while running causing it to crash. References and more reading on each: Syntax Error Wiki (Links to an external site.) Logic Error Wiki (Links to an external site.) Runtime Error on TechTerms.com
Comments