Re: How big is an enum?
From: Tom Tanner (tom_tanner_at_3com.com)
Date: 10/17/03
- Next message: Ryan Mitchley: "Re: C++ library for numerical computing"
- Previous message: Karl Heinz Buchegger: "Re: To STL or not to STL"
- Next in thread: E. Robert Tisdale: "Re: How big is an enum?"
- Maybe reply: E. Robert Tisdale: "Re: How big is an enum?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Ryan Mitchley: "Re: C++ library for numerical computing"
- Previous message: Karl Heinz Buchegger: "Re: To STL or not to STL"
- Next in thread: E. Robert Tisdale: "Re: How big is an enum?"
- Maybe reply: E. Robert Tisdale: "Re: How big is an enum?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|