Re: How big is an enum?

From: Tom Tanner (tom_tanner_at_3com.com)
Date: 10/17/03


Date: Fri, 17 Oct 2003 09:23:07 +0100


unix_mathi wrote:
> Enums are integers.So it occupies 4 bytes.

(Cutting in at the end of the conversation) They /could/ be smaller. The
compiler is entitled to store an enum in a short or a byte of the enum
range is appropriate. (Not that many do).

Tom