+ 2
What are comments for?
I HAVE NO IDEA WHAT COMMENTS ARE FOR?
11 Answers
+ 7
Comments are used to explain the meaning of code or exact purpose of particular syntax .
It gives theory meaning about syntax and due to whuch it easy to learn and understand to coder or ither person to understand.
+ 1
Tulika Rawat Comments are posted by the user. They share their opinion, doubts, and information by comments ragarding to that specific topic or question.
See those just by tapping on comments, you can leave a comment there also.. So that, You can understand it clearly..
+ 1
Tulika Rawat Are you asking about best answer in Q&a. Ask your question clearly with proper tags
0
not those comments. the commenst you earn by answering questions.
0
see when u give a correct answer in a question, it says that for wxample, u got 15 comments. what is it used for?
0
i still dont understand
0
not that comment
0
Comments are used to understand the flow of the code and working of the code and this are also used to work later in the code for understanding the Developer
0
Other usage of programing comments:
- in IDE for showing tips during coding
- for autogeneration of documentation, e.g. for REST API
- for generation of database structure (DDL)
But question author asks about some other comments as I understood by conversation.
0
Comments are added with the purpose of making the source code easier for humans to understand the step or task about to be executed by the code, and are generally ignored by compilers and interpreters.
It also helps to understand better the code even after long time without checking on it
0
Simple. It's just BS from others about the test. Don't bother checking it.