In C++ programming language , there are generally 5 types of errors and these are as -
1] Syntax error -
Syntax error occurs when programming languages are misused that is when a grammatical rule of C++ is violated.
2] Semantic error -
semantic error occurs when the statement are not meaningful . semantic refers to the rule which gives the meaning of the statements.
3] Type error -
if a function is given a wrong type of data type error is signaled by a compiler.
4] Run time error -
at run time error is that occurs during the execution of a program it is caused of some illegal operation taking place or invalidity of desired or acquired conditions for the execution of the program.
5] Logical error -
a logical error is that error causes a program to produce incorrect or undesired output.
1] Syntax error -
Syntax error occurs when programming languages are misused that is when a grammatical rule of C++ is violated.
2] Semantic error -
semantic error occurs when the statement are not meaningful . semantic refers to the rule which gives the meaning of the statements.
3] Type error -
if a function is given a wrong type of data type error is signaled by a compiler.
4] Run time error -
at run time error is that occurs during the execution of a program it is caused of some illegal operation taking place or invalidity of desired or acquired conditions for the execution of the program.
5] Logical error -
a logical error is that error causes a program to produce incorrect or undesired output.