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

Norman Diamond diamond at jit533.swstokyo.dec.com
Mon May 20 13:46:17 AEST 1991


In article <ENAG.91May20004919 at maud.ifi.uio.no> enag at ifi.uio.no (Erik Naggum) writes:
>Ron Guilmette writes:
>>   enum E { red, green = sizeof (enum E), blue };
>
>What is "sizeof (enum E)" supposed to return if not the same as
>"sizeof (int)"?

sizeof (short), sizeof (long), or sizeof (other_integral_type_which_the_\
implementation_is_allowed_to_define_even_though_portable_programs_cannot_\
directly_name_this_type)
--
Norman Diamond       diamond at tkov50.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.
Permission is granted to feel this signature, but not to look at it.



More information about the Comp.std.c mailing list