January 2017
Intermediate to advanced
606 pages
14h 1m
English
When a program fails to yield the desirable result, we say that it contains a bug. The bug could be an error such as division by zero, invalid type conversion, using a variable not defined, wrong initialization, or some other unintended operation being performed. The process of discovering the bugs and making the program bug-free is called debugging. In this chapter, we discuss some debugging techniques.
debugging: making the program error free
Program testing aims to expose the presence of bugs in the programs. To find the bugs in a program, we test it on various inputs. We correct the errors found in this process and feel confident that the program will run smoothly. ...