answersLogoWhite

0


Best Answer

Comments are useful to explain what lines of your source code do. When a new member is assigned to a project that has already been worked on the comments allow them to better see where the last programmer left off. It would also be helpful if you were assigned to a project that was already started ;)

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the purpose of placing comments in your source code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Written remarks in your HTML or CSS document which will not be displayed in the browser?

Comments are not displayed by the browser, but they can help document your HTML source code.


Where does javadoc extract comments from?

The javadoc tools extracts comments from your source code. Specifically, it will look for comments around class, field, and method definitions which are in the javadoc format: /** */


What is the computer source code in science?

In Computer Science, source code is generally computer instructions written in a form that is able to be read by a human. Source code is usually text and can even include comments about a computer program.


How do you remove comment from c program?

There are no comments in C programs. Comments only exist in the source code and the precompiler automatically strips them out before the compiler sees them.


What are Source code tools in software engineering?

source code is any collection of computer instructions (possibly with comments) written using some human-readable computer language, usually as text.


Can reverse engg be applied on ActiveX object file and source code of it can be found?

No. You cannot retrieve the original source code through reverse engineering. At best you can disassemble the machine code. The resultant code is not unlike assembly language, however there are no comments or identifiers to assist you.


Who knows how to embed code in comments?

We could easily embed code in comments but they won't execute. Comments will start from <!-- and end with --!>.


What is the purpose of the Planet source code?

The Planet Source Code website is dedicated to providing millions of lines of source code examples and thousands of tutorials. Programing languages covered include PHP. Java, C++, SQL and Delphi.


What is the use of comment ic c language?

Comments are used so that the software developer can look at the source code later and understand what a particular file, function, data structure, etc does without having to trace through the entire program. Comments are never included in the final executable code, and are only meant as a way for a developer to notate parts of the source code so that future developers will have an easier time maintaining the code. Even the same developer working on a project for many months will benefit from comments, as eventually your own code will look foreign to you as you improve your programming technique and write more code.


What is the purpose and advantage of comments in c?

Comments are used to document code. In C, it is not always easy (and often impossible) to express ideas in code, therefore comments help the reader understand the logic in a piece of code. In C++, expressing ideas in code is extremely easy, thus code becomes largely self-documenting and there is much less need to explain the logic. The downside to comments is when they are used irrelevantly or frivolously. Explaining what a piece of code does is never a useful comment since the code tells you precisely what it does and the comment simply becomes a distraction. But code doesn't always tell you why it's written the way it is, or indeed why it exists at all, and that's where comments become useful. Not only to the reader, but to the programmer themselves; they serve as reminders.


What is the purpose of source management?

Source management is important to ensure that the source of some product is kept safe and up to date. This can refer to many different things, such as the source code of a program, like Google.


What is a useful tool when a program must be modified months or years after the original writing?

Comments are pieces of text inserted into source code for the benefit of developers that must work on the code months or years later.