invert function in c Get link Facebook X Pinterest Email Other Apps By Admin - May 25, 2011 Write a function invert(x,p,n) that returns x with the n bits that begin at position p inverted (i.e., 1 changed into 0 and vice versa), leaving the others unchanged. Get link Facebook X Pinterest Email Other Apps Comments betaby2May 27, 2011 at 12:42 AMx = ((2^n-1)<<p)^xi am too lazy to explain this now :) !!ReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
x = ((2^n-1)<<p)^x
ReplyDeletei am too lazy to explain this now :) !!