L
LinuxGuy
Hi,
I want to add bits to present number. Shift operator pushes bits and
add '0' at the end.
I want to shift bits and want to add 1 at end
Ex,
1)
suppose Input 0000
for 1 bit I want output as 0001
2)
Input 0100
for 1 bit output should be
1001
any help is welcome.
Thanks
I want to add bits to present number. Shift operator pushes bits and
add '0' at the end.
I want to shift bits and want to add 1 at end
Ex,
1)
suppose Input 0000
for 1 bit I want output as 0001
2)
Input 0100
for 1 bit output should be
1001
any help is welcome.
Thanks