I have 2 arrays of bytes: ary_a
and ary_b
, both are same size.
I want to set the LSB of every byte in ary_a
same as the LSB of every byte in ary_b
. For example:
First byte in the array:
ary_a[0] = 10110110
ary_b[0] = 00101011
//then ary_a[0] will be:
ary_a[0] = 10110111
Second byte:
ary_a[1] = 10110111
ary_b[1] = 00101011
//then ary_a[1] will be:
ary_a[1] = 10110111 //does not change
Third:
ary_a[2] = 10110111
ary_b[2] = 00101010
//then ary_a[2] will be:
ary_a[2] = 10110110
And so on..