Nested comments in VAX C -- Help!
Brendan Kehoe
brendan at cs.widener.edu
Tue May 7 11:39:53 AEST 1991
In <114836 at cc.utah.edu>, RCAPENER at cc.utah.edu writes:
>if you try /* outside comment /* inside comment */ */
>the compiler throws up!
As it should .. no compiler should let that through.
When you "nest" comments, you have multiple starts (/*); the */
sequence tells cpp that it's the end of the comment, and it should
start paying attention again. The second */ is what it's throwing up on.
--
Brendan Kehoe - Widener Sun Network Manager - brendan at cs.widener.edu
Widener University in Chester, PA A Bloody Sun-Dec War Zone
"Does this person look relaxed to you? Well, it's actually an
experiment of Contour's new 565-E chair!"
More information about the Comp.lang.c
mailing list