Monday, 8 July 2013

why nested comments are not allowed

consider the following example
/*this is comment /* Nested comments */ are not allowed */
Anything that lies between /* and  */ is treated as a comment . In the above example from  "This " up to comments" everything is treated as comment including "/*", Hencve "are not allowed. */" does not lie in the comment. this being an improper c statement  error occurs.
 

0 comments:

Post a Comment