Computers execute binary codes that have some pattern or have followed rules. While writing a program to solve a particular problem, there can arise different kinds of errors or rule violations. Here we will discuss some of them.
- Syntax Error – ANSI/ISO standardization committe for ANSI C has made certain rules and standard for C programming. Any violation of rules of the language is Syntax error.
- Runtime Error – Errors that occurs at the execution of program. Errors such as mismatch of data type, referencing an out of bound array, etc.
- Logical Error – Errors related to the logic of the program such as taking the wrong path, failure to consider the particular condition and incorrect order of evaluation of the statements belongs to this category.
- Latent Error – There are hidden errors that comes when particular set of data is used. For example : division by zero error.