Captain Java
June 16th, 2001, 10:21 PM
Hi:
From Kernighan & Ritchie's C Programming Language on bitwise operators Ex2-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.
any help will be appreciated. Thanks :)
From Kernighan & Ritchie's C Programming Language on bitwise operators Ex2-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.
any help will be appreciated. Thanks :)