+ 9
What main role of comment in any language i can't understand
15 Antworten
+ 5
Ace okay, deleting my comment
+ 7
Comment helps you to understand what the certain line of code for in this code.
it helps others to understand your code.
+ 4
am not anderstand this program evry thigs Iam saved is lost. when am opan my net werk can you healp me
+ 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
+ 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
+ 1
Comments makes the programe more readable and it is good habit to write comments. But more use of comments makes program more complex.
+ 1
to know the purpose of the code following to it
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. 😀
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)
0
yes can you write me my
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
0
just for giving information about the code...for the code u understanding..
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
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
0
the main aim of introducing comment is to show the purpose of that particular line of code.