Type of Error in C++
Hello friends i am here with new concept Types of Error in C++. There are two type of error in C++- Run time error
- Compile time error
Run time error
This type of error is rise when error is generate at the program execution time.
This error occurs while running a program by displaying the message listed below.
- Division by 0.
- Overflow
- Underflow
Compile time error
This type of error is generate at the time of compilation of program.
This error occurs due to following reason.
- Not following the grammatical rules used in declaration of identifier.
- Not declaring an identifier used in program.
- Not terminating statement by semicolon.
- Not providing equal number of opening and closing braces etc.
- These errors can be rectified by the user as it is displayed while compiling the program.
No comments :
Post a Comment