Skip to main content

SOME COMMON FORMS OF ERROR

                                   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.

Popular posts from this blog

INTRODUCTION

C++ (pronounced as "see plus plus") is a computer programming language based on C. It was created for writing programs for many different purposes. In the 1980's, C++ became one of the most used programming languages in the world. The C++ programming language was developed by Bjarne Stroustrup at Bell Labs in the 1980s , and was originally named "C with classes" by   rick mascitti . The language was planed as an improvement on the C programming Language ,adding features based on object oriented programming. Step by step , a lot of advanced features were added to the language ,like operator overloading ,  exception handling and templates .