0

Why we use nested comments ?

Why we use nested comments in programming languages?

7th Mar 2018, 11:50 AM
Rishu Raj
Rishu Raj - avatar
3 Answers
0
Well, yes!
7th Mar 2018, 9:27 PM
apex137
apex137 - avatar
+ 1
To disable some code in debugging for example, using a nested comment is a quick and easy solution. However, continued use of nested comments as you type might cause some needed code to be commented out by mistake, which can cause errors. But most IDEs and advanced text editors today use color-coded text, so anything commented out would be easily spotted.
7th Mar 2018, 1:06 PM
apex137
apex137 - avatar
0
So, you are telling that if a particular section of code is to be disabled for debugging process which itself contain some comments then nested comments are used
7th Mar 2018, 2:40 PM
Rishu Raj
Rishu Raj - avatar