+ 5

What is the use of comment? And further how a comment be used?

30th Oct 2016, 12:13 PM
Zulkarnain Khan
Zulkarnain Khan - avatar
8 Respuestas
+ 12
Comments are very useful and very helpful specially when there are a lot of programmers involved. They are important to clearly state what has been done so you or anyone else who is involved in the project will now exactly what you did and where did you stop at that moment. Comments are good practice and they are what defines a good programmer. I hope this helped.
30th Oct 2016, 2:35 PM
Veress Odon
Veress Odon - avatar
+ 4
consider you are working on a larger programme And you dont code it fot a while When you open the programme after a while you may not remember what tou where doing So If leave a comment it would be useful
30th Oct 2016, 1:31 PM
Abhiram ARS
Abhiram ARS - avatar
+ 3
its a helper to identify quickly
20th Dec 2017, 3:58 AM
Vyshnav Vishnu
Vyshnav Vishnu - avatar
+ 1
a comment tells to someone else what are you doing in the programm. And further helps you to remind what the code does
30th Oct 2016, 5:08 PM
Fernando Montero
Fernando Montero - avatar
+ 1
Comments are used for documentation. There are two types of comments in C++: 1. single-line comment, code: // This is a comment 2. Multiline comment, code: /* This is line #1 This is line #2 ... */
1st Nov 2016, 10:29 PM
Hasan Al-Yazidi
Hasan Al-Yazidi - avatar
0
Comments are more for you or anyone who looks at your code. its used to explain what code does or just leave notes for yourself/others.
21st Nov 2018, 3:29 AM
Dakota
Dakota - avatar
0
Comments are used to save your program so that it doesn't run
22nd Dec 2018, 9:36 AM
Samuel Solomon
Samuel Solomon - avatar
0
/* This is your program And your codes */
22nd Dec 2018, 9:39 AM
Samuel Solomon
Samuel Solomon - avatar