How many annotation methods are there in C language?

烟雨青岚
Release: 2020-06-16 13:50:28
Original
10483 people have browsed it

How many annotation methods are there in C language?

#How many comment methods are there in C language?

There are three C language annotation methods.

The first type: single-line comments //…

代码
// 注释
代码
Copy after login

The second type: multi-line comments/*…*/

代码
/* 注释1
注释
注释3
*/
代码
Copy after login

The third type: conditional compilation comment #if 0...#endif

代码
#if 0
注释1
注释2
注释3
#endif
代码
Copy after login

Combination 1:

#if 0
/*
注释
*/
#endif
Copy after login

Combination 2:

/*
//注释
*/
Copy after login

Recommended tutorial: "C Language"

The above is the detailed content of How many annotation methods are there 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
Popular Tutorials
More>
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!