Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 189 Bytes

README.md

File metadata and controls

3 lines (2 loc) · 189 Bytes

Exercise 2-6

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.