The 4 Common Programming Errors
Tags: webdev, tutorial, beginners, javascript
Published: 2022-03-19 18:34:12

Hey, what's up mates,
At previous blog I was written about [master the web API](https://dev.to/muhammad_asif/master-the-web-storage-api-3572). If you didn't catch it yet, check it out right now. Because that was the special resource for developers, specially for JavaScript developers.
So, in this tutorial I have written about The most common problems of every developers, which is being stuck with software engineers. Developers should need an exact knowledge about this problems, because it stuck with our every single line of code. so let's get start.

Did you know, the program can be sick? Yes programs also get sick when we break the rules while writing programs. The program's errors are called programming errors and programming errors result in abnormal functioning of the program.

We all need to know what is programming error and what is the error in programming, because if the doctor can not catch the patient's disease, then the doctor will not be able to treat the patient properly. In the same way, if we can't understand what kind of error has occurred in this program after watching or doing a program, then we will not be able to run the program successfully. And when I can not solve the error of programming. Then we get frustrated that maybe the programming possibility by me.

I have even seen in many exam questions or job interviews that there is an error program to tell where it is wrong and what kind of mistake it is.

Programming error is an invalid operation performed by a user which results in abnormal operation of the program.
Programming errors are often undetectable until the program is compiled or executed. Some errors prevent the program from being compiled or executed. Errors should be removed before compiling and executing in this way.

The most common errors can be broadly classified as follows.

## Syntax Error:
The errors that occur when you violate the C / C ++ syntax writing rules are known as Syntax Error. This compiler error indicates something that must be corrected before compiling the code. All of these errors are detected by the compiler and are thus known as compile-time errors.
The most frequent syntax errors are:
1. Missing parentheses (}).
2. Print without declaring the value of the variable.
3. If the semicolon is not given at the end of the program statement.


## Run-Time Error:
Errors that occur during program execution (run-time) after successful compilation are called run-time errors. One of the most common run-time errors is partitioning by zero, also known as section error. This type of error is difficult to find because the compiler does not point to the line where the error occurs.


## Linker Error:
This error occurs when after compiling we link different object files to the main object using Ctrl + F9 key (RUN). These errors are created when the executable of the program cannot be created. This may be due to incorrect function prototyping, incorrect header file. One of the most common linker errors is writing Main () instead of main ().


## Logical Error:
During the compilation and execution of a program, if the specified input value is given, the desired output is not obtained. Such errors that provide incorrect output but appear to be error-free are called logical errors. This is one of the most common mistakes made by newbies to programming.
These errors depend only on the logical thinking of the programmer and it is easy to determine if we follow the line of execution and why the program takes that path of execution.


## Semantic Error: 
This error does not make sense to the compiler when the program statement.

##Wrapping Up
I hope you enjoyed the article, if yes then don't forget to press ❤️ and Subscribe. You can also bookmark it for later use. It was fun to create this article and If you have any queries or suggestions don't hesitate to drop them. See you.
You can extend your support by giving me stars on GitHub Profile.😊👇
[G i t h u b](https://github.com/Mohammad-Asif-Web)
[P o r t f o l i o](https://muhammadasif10.blogspot.com/)
[L i n k e d i n](https://www.linkedin.com/in/mohammadasif10/)

##Support

[Buy me a Coffee](https://www.buymeacoffee.com/muhammadasif10)