Thursday, December 9, 2010

TYPE OF ERROR IN C LANGUAGE (C Language)

There are three type of the error occur in C language
1. Syntax Error
2. Logical Errors
3. Run Time Error

SYNTAX ERROR
Rules for writing c program is called syntax. All the c statement written according to these rules. Syntax error occur when an invalid statement is written in program. The compiler detects syntax errors and display error message to describe the cause of error. A program containing syntax errors cannot be complied successfully.
LOGICAL ERRORS
Poor Logic of the programmer is create logical error. If programmer writes a wrong formula to calculate the result, it is an example of logical error.
RUN-TIME ERRORS
It's type of error occurs when a statement directs the computer to execute an illegal operation such as dividing a number by zero.

No comments:

Post a Comment