Search

Monday, December 1, 2014
0 comments

Debugging C program

10:29 PMMonday, December 1, 2014
Debugging is the process of isolating and correcting the errors. One simple method of debugging is to place printf( ) statements throughout the program to display the values of variables. It displays the dynamics of a C program and allows the programmer to examine and compare the data at various points. Once the location of an error is identified and corrected, the debugging statements should be removed. We can use the conditional compilation statements to switch on or off the debugging statements.

Another approach is to use the process of deduction. Here, we arrive at the errors, using the process of elimination and refinement. This is done using a list of possible causes of the error.
The third error-locating method is to backtrack the incorrect results through the logic of the program until the mistake are located. The program is traced backward until the error is located.
Protected by Copyscape Online Copyright Protection Software

0 comments :

Post a Comment

 
Toggle Footer
Top