6 ms·
Thanks for the pointer to my answer :-) Similar text to that C++ text is in C99 at 6.4 [Lexical elements], paragraph 4. Paragraph 6 considers the example x+++
by jomar 14y ago
Thanks for the pointer to my answer :-)
Similar text to that C++ text is in C99 at 6.4 [Lexical elements], paragraph 4. Paragraph 6 considers the example x+++++y (which is similar to your example), noting that it is to be parsed as x ++ ++ + y. (I guess it uses distinct variables x and y to avoid any distractions due to sequence point issues -- which are immaterial here as the thing fails to parse anyway.)
- chris_wot 14y agoSometimes I think that the C and C++ standards authors entered into the IOCCC before they wrote the examples :-)