Hi all,
i am a little confused about reading some bits form unsigend int, so if i have the following code:
how can i read each bit form a and store it in b0, b1, b2 as following:
b0 =1;
b1=0;
b2=1;
thanks a lot in advance
i am a little confused about reading some bits form unsigend int, so if i have the following code:
Code:
unsigned int a (5); // ......101 bool b0; bool b1; bool b2;
b0 =1;
b1=0;
b2=1;
thanks a lot in advance
Comment