Please give me solution
Please give me solution of this object
create a function invert(int x,int y,int n)
with n bits.That began at position inverted p.
you have to assume that x,p,n are integer and function will return an integer.
Ex.if x=181 in decimal , which is 10110101 in binary. and p=4, n=2.
then function will return 10101101 in binary and 173 in decimal.
the underlined bits are managed bits.
note that bit position counted from right to keft that count start with zero. therefore position 4 is fifth bit from right value.