#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!