mikroC
making it simple...
CommentsmikroC - C Compiler for Microchip PIC microcontrollers
Comments are pieces of text used to annotate a program, and are technically another form of whitespace. Comments are for the programmer’s use only; they are stripped from the source text before parsing. There are two ways to delineate comments: the C method and the C++ method. Both are supported by mikroC.
C comments
C comment is any sequence of characters placed after the symbol pair /*. The comment terminates at the first occurrence of the pair */ following the initial /*. The entire sequence, including the four
In mikroC,
int /* type */ i /* identifier */;
parses as:
int i;
Note that mikroC does not support the nonportable token pasting strategy using /**/. For more on token pasting, refer to Preprocessor topics.
C++ comments
mikroC allows
int i; // this is a comment
int j;
parses as:
int i; int j;
|
| page |
MikroElektronika: Development tools - Books - Compilers | 37 | |
|