0
When do we need to add comment to our codes
when is comment necessary in our coding
4 Answers
+ 1
just good practice. helps others know what you were doing with each part of your code. also helps you when you go back and look at it after a few weeks. don't have to wonder wth you were trying to do
+ 1
you can add them in wherever you want to. comments can go anywhere they are specified.
0
don't know it
0
I comment my codes with the algorithm I use in it. I don't comment things like
s++; // increment s
instead i do
s++; // check next number