20.1 C/C++ Language Comments

The MPLAB® XC-DSC C/C++ Compiler for dsPIC33C/E/F and dsPIC30 DSC 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