Home  >  Article  >  Backend Development  >  How many annotation methods are there in C language?

How many annotation methods are there in C language?

烟雨青岚
烟雨青岚Original
2020-06-16 13:47:3210526browse

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 //…

代码
// 注释
代码

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

代码
/* 注释1
注释
注释3
*/
代码

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

代码
#if 0
注释1
注释2
注释3
#endif
代码

Combination 1:

#if 0
/*
注释
*/
#endif

Combination 2:

/*
//注释
*/

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!

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