Comment (computer programming)

From Wiki @ Karl Jones dot com
Revision as of 20:24, 20 September 2016 by Karl Jones (Talk | contribs) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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