A programmer tries to debug a code of 10,000 lines. It is known that there is a logical error in the
first 25 lines of the code. What is an
efficient way to debug the code?
Answers
Answered by
31
Explanation:
Use an interpreter on the first 25 lines
Answered by
14
Title:
Efficient ways to Debug program
Explanation:
- There are many different efficient ways in which the program can be debugged.
- Dividing the very large program into many small functions and modulus helps the user to debug the program easily.
- By dividing the program into large number of small function the user finds it easy to understand the program and can easily debug it.
- It makes the program simple to understand.
- User can also use comments to debug the program.
- There are two types of comments commonly used commonly used.
- They are single line comment and multi line comments.
- Single line comment is used to comment single line whereas multi line command used to comment multiple lines.
- Comment statement also used to know what is happening in a line or the set of lines and helps the user to debug the program easily.
Similar questions