Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
t3rr0r1z3r
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
t3rr0r1z3r
17y ago
Well, the problem is: Write a program setbits(x, p, n, y); which returns x with the n bits that begin at position p set to the rightmost n bits in y, leaving the other bits unchanged. I've tried to solve it. To answer your questions; Yes, I
2.
▲
I cannot wrap my head around bit-ops in C, anyone want to give me a guide?
3 points
by
t3rr0r1z3r
17y ago
|
3 comments