Home Segments Index Top Previous Next

56: Mainline

Note that you cannot place a /* ... */ comment inside another /* ... */ comment. If you try, you find that the inner comment's */ terminates the outer comment, and your C compiler cannot compile your program:

/*  <-----------------------------------* 
                                        | 
First part of outer comment ...         | 
                                        | 
/*  <-- Commented out                   | */ of inner comment 
                                        | terminates /* of 
Inner comment ...                       | outer comment 
                                        | 
*/ -------------------------------------* 
Second part of outer comment ... 
*/  <-- Dangles