Write a program to replace n bits from the position p of
the bit representation of an inputted character x with the
one's complement. Method invertBit takes 3 parameters x as
input character, p as position and n as the number of
positions from p. Replace n bits from pth position in 8 bit
character x. Then return the characters by inverting the
bits.
No Answer is Posted For this Question
Be the First to Post Answer
What is an example of structure?
Why c is called object oriented language?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
How is actual parameter different from the formal parameter?
how can i print "hello".please consider inverted commas as well.i want to print on console: "hello"
What is bin sh c?
What is storage class?
Subtract Two Number Without Using Subtraction Operator
write a progam to compare the string using switch case?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
f1() { f(3);} f(int t) { switch(t); { case 2: c=3; case 3: c=4; case 4: c=5; case 5: c=6; default: c=0;} value of c?