✏️ Explanatory Question

What are the types of program errors?

👁 48 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

There are mainly four types of program errors:
(i) Syntax errors – Errors that occur when the rules (syntax) of a programming language are violated.
(ii) Semantic errors – Errors that occur when the code follows the syntax but is improperly structured or logically incorrect.
(iii) Logical errors – Errors that occur when the program runs but does not produce the expected output due to incorrect logic.
(iv) Run-time errors – Errors that occur during execution, usually due to unavailable resources or unexpected values.