+ 1
How to write bits of the variable into the array, bit after bit
fo example i've got variable unsigned char data0b00101101 and i want an array that would contain this bits.
5 odpowiedzi
+ 12
For all the characters inside the array:
if the character is numerical:
extract and store into another array/string.
else
skip the character and proceed.
+ 2
int array[8];
unsigned i;
unsigned char data; /*define your data here */
for(i = 7; i < 8; --i)
array[i] = (data>>(7 - i))&1;
0
no, i can't, I need to write on c, but not cpp