This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help with bit-field semantics in C and C++


On Friday, August 27, 2004, at 02:38 PM, Steven L. Zook wrote:
What would happen in this case?

enum eSparse { One = 1, Two = 2, Four = 4, Eight = 8 };
eSpare Sparse = ( eSparse )0x0FFFF;

You'd get 15.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]