Is `char const *foo;' legal?

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Jan 13 07:02:59 AEST 1990


In article <25ABBF93.9618 at paris.ics.uci.edu> rfg at paris.ics.uci.edu (Ron Guilmette) writes:
>Did I miss something?  Which binding is "correct"?  Why?

"char const TOKENS" is equivalent to "const char TOKENS".  If you want
the "const" to qualify something within the "TOKENS" part, you have to
wedge it into the "TOKENS".



More information about the Comp.std.c mailing list