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

Mike Stump mrs@apple.com
Sat Aug 28 15:38:00 GMT 2004


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.



More information about the Gcc mailing list