Home >Backend Development >C#.Net Tutorial >What are the comment symbols in C language?

What are the comment symbols in C language?

尚
Original
2020-03-02 13:01:1715892browse

What are the comment symbols in C language?

Comment characters in C language are generally divided into two types. One is a paragraph comment that starts with "/*", adds the comment content in the middle, and ends with "*/" symbol. Anything between "/*" and "*/" is a comment.

The other is a single-line comment starting with "//" and followed by the comment content. Anything after "//" is a comment.

Recommendation: "c Language Tutorial"

When the program is compiled, the annotation content will not be processed in any way. Comments can generally appear anywhere in a program. Comments are used to prompt or explain the function of a program to the user or programmer.

The above is the detailed content of What are the comment symbols in C language?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn