Types of Errors
1. Compile time error
2. Run time error
3. Logical error2. Run time error
1. Compile time error:- compile time error is also called syntax errors. the error which is generated at the time of compilation is known as compile time error.
missing semicolon at the end of the statement.
missing any of delimiters
incorrect spelling of keyword
writing variable without declaration
2. Run time error:- the error which is generated at the run time is known as runtime error
calling function without existence, divide by zero.
3. Logical errors :-the error which are generated in the logic of the program are called logical error.
the sequence of instruction used in a program may be incorrect
0 Comments