How soon can `sizeof (tagged_type)' be used?

Ron Guilmette rfg at lupine.ncd.com
Sun May 12 17:04:00 AEST 1991


I may have asked this question once already (long ago).  If so I apologize.
I forgot the answer.

Are either or both of these examples legal?

enum E { red, green = sizeof (enum E), blue };

struct S { int i; int j : sizeof (struct S); int k; };



More information about the Comp.std.c mailing list