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