Difference between revisions of "Comment (computer programming)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Created page with "In computer programming, a '''comment''' is a programmer-readable annotation in the source code of a computer program. == Description == They are added with the...")
(No difference)

Revision as of 21:24, 20 September 2016

In computer programming, a comment is a programmer-readable annotation in the source code of a computer program.

Description

They are added with the purpose of making the source code easier to understand, and are generally ignored by compilers and interpreters.

The syntax of comments in various programming languages varies considerably.

As well as of direct use to any programmer reading the source code, comments are sometimes processed in various ways to generate documentation external to the source code itself by documentation generators, or used for integration with source code management systems and other kinds of external programming tools.

The flexibility provided by comments allows for a wide degree of variability, but formal conventions for their use are commonly part of programming style guides.

See also

External links