- Comment are added to make a program more readable to you but the compiler must ignore the comments.
- Everything that is inside /* and */ is considered as comment and will be ignored by the compiler. You must not include comment within other comment, so something like this is not allowed: [*].
/* this is a /* comment */ inside a comment, which is wrong! */
C – COMMENT EXAMPLE PROGRAM :
/* This is a comment ignored by the compiler */
printf(“Comment in C.\n”);
/* This is another comment ignored by the compiler */
|Comment in C|