Hey guys,
I'm stuck at this program and cannot figure out the logic on how to solve it.
I need to extract 4 bits from an integer(and repeat it until i reach MSB) of a given integer.(my sizeof(int) = 4).and store them in separate character variables
Example:
int a = 011 1010 1101 1011 0011 1010(binary)
counting from LSB
t6=0011
t5=1010
t4=1101
t3=1011
t2=0011
t1=1010
How do i go about this problem?
Thanks in advance.