+ 9

What main role of comment in any language i can't understand

2nd Jun 2018, 9:56 AM
Hrithik Joad
Hrithik Joad - avatar
15 Answers
+ 5
Ace okay, deleting my comment
2nd Jun 2018, 4:50 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 7
Comment helps you to understand what the certain line of code for in this code. it helps others to understand your code.
2nd Jun 2018, 10:01 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 4
am not anderstand this program evry thigs Iam saved is lost. when am opan my net werk can you healp me
2nd Jun 2018, 1:28 PM
Pink Include
Pink Include - avatar
+ 1
take this code for example,, public class abcd{ public static void main(String[]args){ System.out.println("hello"); } } you don't know what class abcd means, do you? ofcourse you won't,,,that's what happens with real peoples, they write according to their convenience,,which other may not be able to read,,,so they include comment to make it readable for other peoples,,, hope it helps
7th Jun 2018, 3:00 AM
Amit kumar
Amit kumar - avatar
+ 1
Comments help other people reading your code understand it better. They don't show up anywhere in the actual output. Read this code for a better understanding. https://code.sololearn.com/WpqHOZGBGsuM/?ref=app
7th Jun 2018, 10:55 PM
Daniel Cooper
Daniel Cooper - avatar
+ 1
Comments makes the programe more readable and it is good habit to write comments. But more use of comments makes program more complex.
9th Jun 2018, 8:47 AM
KIRTI GUPTA
KIRTI GUPTA - avatar
+ 1
to know the purpose of the code following to it
9th Jun 2018, 1:10 PM
Darshil Sachdev
Darshil Sachdev - avatar
0
It can also serve as a source of info for apps for automated generation of documentation. You can derive or describe a procedure, scheme what each of functions does if it is not obvious from its name. Someone comments every single line, others comment rarely, majority is somewhere in between. Comments may however be useless if in unknown language or if poorly managed and maintained... It is complicated. 😀
2nd Jun 2018, 10:06 AM
Jiří Bočan
0
coders who work with the program code use comments to remember what exactly the part of the code do. it is very useful if the program that you write is very big (sorry, English is not my native language)
3rd Jun 2018, 3:35 AM
Konstantyn Wojtkiewicz
Konstantyn Wojtkiewicz - avatar
0
yes can you write me my
4th Jun 2018, 4:51 PM
Hovhannes
0
comment in programming is used to tell what the piece of code is all about or what a particular line will do in our programming. consider an example int a; //a variable 'a' of integer value declared here the comment indicates that we have created a variable 'a' of integer type in our programming
7th Jun 2018, 11:01 AM
Abhishek Verma
0
just for giving information about the code...for the code u understanding..
7th Jun 2018, 4:40 PM
Satheesh Kumar
Satheesh Kumar - avatar
0
writing a comment explains why you wrote an a certain code, it's just like you give reasons for your code. it also helps your partner understand the reason you wrote the code that way if you both work in same website . I wish my answer is simple and easy
8th Jun 2018, 7:34 AM
Adnan Ahmed
0
basically comment are the statements that are not executed on the terminal window that is the window that display your output they are generally use to make one understand about the variable., class, method or a particular coding part it is not always compulsory to write but you can write them by applying double slash(//) in their beginning to make it easy for everyone including you
8th Jun 2018, 3:28 PM
Pramod Sharma
Pramod Sharma - avatar
0
the main aim of introducing comment is to show the purpose of that particular line of code.
14th Jun 2018, 5:56 PM
Abhijeet Anand