PRESENTED BY,
RIYA JOSH
EC2
 An error prevents a program from compiling
and running correctly.
x
OH NO, ITS
AN ERROR!!!
ERRORS
COMPILE-TIME
ERRORS
RUN-TIME
ERRORS
LOGICAL ERRORS
Errors that occur during compile time.
When a program compiles, its source code
is checked for whether it follows the
programming languages rules or not.
SYNTAX
ERRORS
SEMANTICS
ERROR
SYNTAX refers to governing
the construction in a language.
 Occurs when rules of a programming languages are
misused.
Incorrect Statement:
x _ y * z;
x = (x*y)........
Corrected Statement:
x - y * z;
x == (x*y)…....
SEMANTICS refers to the set of rules which give the
.
 Occurs when statements are not meaningful.
 Violation of semantical rules.
Incorrect Statement
x * y == z;
Correct Statement:
z = x * y;
 Errors occurring during execution time.
 Easy to identify because program stops when
it encounters them.
Example,
9/0 is a run-time error.
 Mistake in the analysis of the program.
 Sub-category of run-time errors.
Incorrect Statement:
4<3;
4<3;
Correct Statement:
4>3;
ANY DOUBTS
????????????
YA,
SUCCESS!!!!!!
Types of errors

Types of errors