warning: '/*' within comment
diamond@tkovoa
diamond at tkou02.enet.dec.com
Mon Jun 4 11:09:07 AEST 1990
In article <1990Jun1.200433.6919 at druid.uucp> darcy at druid.UUCP (D'Arcy J.M. Cain) writes:
>Is there anything in the standard that
>allows the compiler to ignore the quotes while inside a comment.
In fact, a compiler is REQUIRED to ignore quotes while inside a comment.
/* If a compiler doesn't ingore this comment, it is broken.
Though if it wishes to be unpopular, it may warn about the apostrophe. */
char *x = "Address of " /* Beginning of string; comment with extra " mark */
"string"; /* and x MUST point to "Address of string". */
--
Norman Diamond, Nihon DEC diamond at tkou02.enet.dec.com
Proposed group comp.networks.load-reduction: send your "yes" vote to /dev/null.
More information about the Comp.std.c
mailing list