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
Explain how do you sort filenames in a directory?
What are the key features in c programming language?
What are the basic data types associated with c?
What does the c in ctime mean?
Explain #pragma in C.
can anyone please tell about the nested interrupts?
what is used instead of pointers in java than c?
What is the function of multilevel pointer in c?
Print the foll in C...eg when n=5 the o/p must b + + + + + + + + + + + + + + + + +
Explain what is the use of a semicolon (;) at the end of every program statement?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
What is a built-in function in C?