/*
'
(slash immediately followed by asterisk)
and ended with `*/
' (asterisk followed by slash)
*/
'
/* good comment */
/ * * /
is not a valid comment (because of the whitespace
between the `/
' and the `*
')
/* can even contain another /* */
/* including "*/" */
is an error
/* including "*/
' then tried to
compile `" */
'
/* * Good for setting comments off * from the rest of your code */
a = 1; /* forgot comment terminator a = 2; /* everything ignored to here --> */ b = a;causes
b
to be set to 1
/* disabling block */ /* code ... code /* unnoticed comment */ ... code */would cause the embedded
*/
to end the comment, and
everything after it to get compiled (possibly unnoticed)
#ifdef 0 code ... code /* unnoticed comment */ ... code #endif