Comments in C?

This is probably a quick, no problem question, but I could not find an answer on Google. I do most of my coding in C #, and I'm currently typing C bits, and I was wondering if C also supports triple slash comments or if I'm just messed up, being able to use them.

Thank!

+3
source share
5 answers

C has no equivalent XML or JavaDoc documentation comments.

Try Doxygen .

+5
source

In the C language itself, a triple slash comment is not special (it's just double slash comments that start with a slash).

However, you can use three-slash comments with Doxygen .

+6

C , ++. C99.

+2

Presumably you are talking about creating comment blocks formatted for automatic extraction.

Doxygen supports special comment blocks that begin with a C ++ double-slash comment delimiter, followed by either another slash or an exclamation mark.

+2
source

C supports /* */comments. C99 adds comment support //. Your IDE or compiler may support more, but this is non-standard.

+1
source

All Articles