i dont understand comments one | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

i dont understand comments one

23rd Jul 2016, 1:42 AM
Shweta Agarwal
Shweta Agarwal - avatar
3 Answers
+ 1
Comments are used in so many different ways, and I would recommend using them when writing out large programs. Comments can be used for example to say what a cetain function, or loop does, because just by looking at it, it can't always be clear. This greatly improves the readability of the code and people are going to be more likely to understand what's going on. Additionally, comments can also be used temporarily, for the benefit of the developer, for example, using comments to tell themselves what they plan to implement in the future, sort of like notes. Comments are great, don't be afraid to use them. Pretty much no downsides to using them.
23rd Jul 2016, 8:23 AM
Cohen Creber
Cohen Creber - avatar
+ 1
We write comments in a cpp programs so that a program can become self explanatory
25th Jul 2016, 5:29 PM
jack
0
lol
7th Jan 2017, 9:17 PM
Stiven Gonzalez
Stiven Gonzalez - avatar