devxlogo

Nested Comments

Nested Comments

Standard C and C++ don’t allow comments to be nested. Thus, the following code snippet is ill-formed because it has one /**/ comment nested within another pair of comments:

 /*int func() /* a nested comment */{

devx-admin

Share the Post: