Hi.. i need help on how to start my programming assignment.
Write a program that takes a character x and two integers n and p both less than 8 and their total must not be greater than 9. It should then replace n bits starting from position p in x with their one's complement - which is 1 to be replace by 0 and vice versa. The new character so formed should then be displayed as new x.
Well, start by posting what you've done so far, and telling us which bit you're having trouble with. :)