0 votes
111 views
in C program by (98.9k points)
edited

Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer
Placing comment symbols /* */ around a code, also referred to as “commenting out”, is a way of isolating some codes that you think maybe causing errors in the program, without deleting the code. The idea is that if the code is in fact correct, you simply remove the comment symbols and continue on. It also saves you time and effort on having to retype the codes if you have deleted it in the first place.

Related questions

0 votes
1 answer 112 views
0 votes
1 answer 84 views
asked May 14, 2022 in C program by Doubtly (98.9k points)
0 votes
0 answers 101 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

564 users

...