Computer Science, asked by saifalam786y, 7 hours ago

differentiate between Syntax error and run time error any three points​

Answers

Answered by ayushkantshetty143
0

Answer:

A runtime error is a program error that occurs while the program is running. Whereas, a syntax error is an error in the syntax of a sequence of characters or tokens that is intended to be written in a particular programming language. Thus, this is the main difference between Run Time Error and Syntax Error.

Explanation:

You have a division statement in your program. If for some reason the denominator becomes zero then you will get a runtime error (something like DIVISION_BY_ZERO). Syntax errors are static error that can be detected by the compiler. Runtime errors are dynamic error that cannot be detected by the compiler.

Similar questions