K
Kapil Khosla
Hi,
I have a problem in which I have to write a function which take
position and number of bits to be modified.
So myfunc(val,pos,size) where val = 11000001, pos = 3 and size = 2
and compliment those bits.
The result would thus be. 11000111
I am not able to figure this one out.
Can you help ?
Thanks,
kapil
I have a problem in which I have to write a function which take
position and number of bits to be modified.
So myfunc(val,pos,size) where val = 11000001, pos = 3 and size = 2
and compliment those bits.
The result would thus be. 11000111
I am not able to figure this one out.
Can you help ?
Thanks,
kapil