Question
Download Solution PDFOf the following, which is NOT a logical error?
Answer (Detailed Solution Below)
Option 2 : Divide by zero
Detailed Solution
Download Solution PDF"Divide by zero" is NOT a logical error it is runtime error.
Runtime errors: These occur when the program is running and something goes wrong.
For example,
- If the program tries to divide a number by zero,
- If it tries to access a memory location that is not accessible