![]() |
|
union bp {
unsigned char all_bits;
struct bx {unsigned b0:1,b1:1,b2:1,b3:1,b4:1,b5:1,b6:1,b7:1;}bit;
};int main(void)
{
union bp f;
union bp k;
k.all_bits=0;
f.all_bits=0;
f.bit.b2=1;
k.all_bits=f.all_bits;
f.bit.b2=0;
if(k.bit.b2)
{
k.all_bits=0;
}return 0;
}
E-mail:
info@telesys.ru