Errors in C-language

                                     3.

Errors in C-language

  1. Syntax error
  2. Logical error
  3. Math error
  4. Run time error
  5. Linker error
  6. Semantic error

1.Syntax error:- 

                             If any changes made in the predefined format of a c-language then the error is called syntax error.
Eg:-If semicolon missing or printf,scanf or other keyword are missing comes under syntax error.

2.Logical error:-

                                 This error occurs when the user gets and an unaccepted output.
Eg:- If the program is expected to give the output in real number but we are getting the output in integer.

3.Math error:-

                            This error occurs because of the illegal input.
Eg:-An number divided by zero is illegal modulus operator will not work for floating value.

4.Run time error:-

                                   An error occurs at a time of exception is known as run time error.
Eg:-In the syntax of scanf & is missing .


5.Linker error:-

                             These error occurs when after compilation we link the different object files with main’s object using Ctrl+F9 key(RUN). These are errors generated when the executable of the program cannot be generated. This may be due to wrong function prototyping, incorrect header files. One of the most common linker error is writing Main() instead of main().

6.semantic error:-

                                    This error occurs when the statements written in the program are not meaningful to the compiler.
                         
                              End 

If you like this content then you can share it and for any issues you can direct contact with me from Home Page.

For regular updates you can also follow my site.

<=Back                                                  Next=>


Comments

Popular posts

Creative pattern of butterfly in C-language

Program to show present time and date in C-language

Introduction of C-language.

Program to cheque enter number is a perfect number or not using if else in C-language

Program to cheque four digits number is palindrome or not in C-language

Program to print the cube of a number in c-language

Simple Hello world program in c- language