[comp.lang.c] Q-> can you nest comments in var names?

karl@haddock.ima.isc.com (Karl Heuer) (10/11/90)

In article <1990Oct10.211829.3168@eng.umd.edu> rfink@eng.umd.edu (Russell A. Fink) writes:
>By rules of Kernighan and Ritchie, or standard adaptations of the
>language, can I nest comments within variable names?
>	printf ("Value is %d", num/* this is obnoxious */ber);

It's illegal (because comments are whitespace) in ANSI C.  In Classic C it's
illegal according to the book, but legal by common practice, so the practical
answer is that it's implementation-dependent.

Karl W. Z. Heuer (karl@ima.isc.com or harvard!ima!karl), The Walking Lint