can be written in either of these two ways :
/* This is a comment */
// this is a comment
the first case the comment is enclosed by
. In the second case the comment starts after the
and spans till the end of the line , not including the new line character .
are treated as regular characters inside a string and a character
do not introduce a new comment when they are written inside a comment .
Comments in c
// This is a comment
A comment that starts with
/* This is another comment */
A comment enclosed within
/* /* */
is ignored and is treated as the
/* */ */
This will cause an error .
char * aCharPtr = "/**///";
A string containing 6 characters .