PROGRAM DEBUGGING:-
After writing the program. The next phase is to debugg the program Debugging a program means removing the error from program. After writing the program, the first thing is that the error has to be removing.
The process of debugging involves discovering, locating and correcting all error, that cause that a program to produce either incorrect results, or low results, the errors into the programs can be classified into these categories these are :-
1. Syntax error
2. Runtime error
3. Logical error
1. Syntax error :-
Syntax error is one which come when be violate any grammatical rules of the programming language syntax error are the most common errors, and much be easier to correct because they Inusewaly produce a helpful error message and gives and ideas. What is wrong in the program. It's a typing mistake,error.
These error message are reduced again, when we translate the program high level to machine level.
2. Runtime error:-
When the program is compiled and it does not produce any error. It does not means that it will produce correct result. This is because of runtime error .Runtime error is any error at cause . Abnormal program terminates during execution for example:- divide by zero, logarithm , negative number,
"Runtime error usually comes, when someone mishandle the program that is when user editing wrong. ".
3.Logical error:-
After removing the syntax error and runtime error, the job is not over, because the most difficult and time consuming error in the programming process is logical error is the programming process to be handed. A logical error is a incorrect translation of either the problem statements or the algorithm.
Example:-
avg=(n1+n2+n3)/3 is logical error.
if you face any any problem or any issue about our website then fill the contact us page and write your issues in it ...
πππππππππππππ
KEEP SUPPORTING π !! KEEP LEARNING π !!
πππππππ
0 Comments