There are three types of errors that may occur while developing or writing C program. There errors are:
1.Syntax Errors
2.Logical Errors
3. Runtime Errors
2.Logical Errors
3. Runtime Errors
Syntax Errors:-
The set of rules (grammatical rules) of a programming language for writing statements of the computer program is known as syntax of the language. The program statements are written strictly according to these rules.
Syntax error occur when syntax of a programming language are not followed in writing the source code. The compiler detects these errors at compiling time of source code. The compiler reports a proper error message about the error.