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
How can you tell whether a program was compiled using c versus c++?
What is echo in c programming?
Program to find larger of the two numbers without using if-else,while,for,switch
For what purpose null pointer used?
What is a class?
i want the code for printing the output as follows 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4
What is a static function in c?
State the difference between x3 and x[3].
what are # pragma staments?
i want to job in your company, so how it will be possible.
Can i use “int” data type to store the value 32768? Why?
Write a program to display the no of bit difference between any 2 given numbers eg: Num1 will 12->1100 Num2 will 7->0111 the difference in bits are 2.