On Wed, 17 Oct 2007 07:41:08 -0700, ".rhavin grobert" <clqrq@yahoo.de>
wrote in comp.lang.c++:
> is there any defined behaviour when doing this:
>
> __________________________
> // lets assume you defined 'BYTE'
> // to whatever is a 8-bit-byte on your sys;-)
>
> struct x {
> BYTE nTreeBit : 3;
> BYTE nFiveBit : 5;
> }
>
> x.nTreeBit = 42;
> __________________________
>
>
> my i assume nFiveBit stayes untouched?
Yes, you may. And the value in nTreeBit is implementation-defined.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://c-faq.com/
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html