[TUHS] c's comment

Richard Tobin richard at inf.ed.ac.uk
Sat Dec 8 01:01:25 AEST 2018

> Why can't c language comments be nested?

For comments that really are comments, what would be the point?

For comments that are really removal of code - commenting out - there
is a better mechanism, #if (or #ifdef), which does nest.

-- Richard

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

More information about the TUHS mailing list