From mboxrd@z Thu Jan 1 00:00:00 1970 From: dave@horsfall.org (Dave Horsfall) Date: Fri, 10 Feb 2017 12:58:43 +1100 (EST) Subject: [TUHS] // comment in C++ In-Reply-To: References: <466b9b582736cb809ecabc7702b74914b27be4b6@webmail.yaccman.com> <20170209115922.GH5418@yeono.kjorling.se> Message-ID: On Thu, 9 Feb 2017, Dan Cross wrote: > Well, it wasn't in c89, but it's been part of ANSI C since 1999: almost 20 > years! Not in my C book 2nd ed. (ANSI), it isn't... A2.2 Comments The characters /* introduce a comment, which terminates with the characters */. Comments do not not nest, and they do not occur within string or character literals. There is no mention of "//"; I have the 51st printing, August 2013. -- Dave Horsfall DTM (VK2KFU) "Those who don't understand security will suffer."