[TUHS] // comment in C++
Dave Horsfall
dave at horsfall.org
Fri Feb 10 11:58:43 AEST 2017
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."
More information about the TUHS
mailing list