hello,
I have started learning c with K&R 2nd edition, and have stumbled along the question.
Write a function setbits(x,p,n,y) that returns x with the n bits that begin at position p set to the rightmost n bits of y, leaving the other bits unchanged.
I have found a solution from here but i do not understand it.
perhaps i am not understanding the task....
thanks in advance