What are the comment symbols in C language?

Release: 2020-03-02 13:01:17
Original
15789 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!