(num>>(p+1-n))&~(~0 <<n) AND (num&(~(~0 <<n)<<p-n+1))>>p-n+1 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

(num>>(p+1-n))&~(~0 <<n) AND (num&(~(~0 <<n)<<p-n+1))>>p-n+1

are both statement same or different? ??

17th May 2020, 5:14 AM
Ashutosh k.
Ashutosh k. - avatar
1 Answer
+ 2
They look pretty much the same to me.
23rd May 2020, 3:50 AM
Kevin ★