0

What is the use of comments in c++, after all it is keep on ignoring by the compiler??

21st Aug 2017, 3:27 PM
Deathstalker
Deathstalker - avatar
3 Respuestas
0
so you know what the code is supposed to do. Comments are for people reading the code
21st Aug 2017, 3:53 PM
Hello World!!!!
Hello World!!!! - avatar
0
Comments become much more important if you plan to share your code, or even if you come back to your own code weeks or months later. They are a way to add explanations for why you are doing things the way you are, and to make the program easier for a human to go through and understand
21st Aug 2017, 3:58 PM
Ralph Landon
Ralph Landon - avatar
0
thank you:)
21st Aug 2017, 4:09 PM
Deathstalker
Deathstalker - avatar