Computer Science, asked by listener110, 1 year ago

give one example of syntax error and runtime error.​

Answers

Answered by Anonymous
2

Example: 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