20.1 C Language Comments

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

Comment Syntax Description Example
/* */ 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