21.1 C Language Comments

The MPLAB XC16 C Compiler supports standard C comments, as well as C++ style comments. Both types are illustrated in the following table.

Comment SyntaxDescriptionExample
/* */Standard C code comment. Used for one or more lines./* This is line 1

This is line 2 */

//C++ code comment. Used for one line only.// This is line 1

// This is line 2