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 the c value paradox and how is it explained?
What is sparse file?
explain memory layout of a C program
What is the 'named constructor idiom'?
Is there a way to compare two structure variables?
What is the value of c?
What is sizeof return in c?
being a chemical engineer and with an aggregate of 80% why you opt for TCS and not your core industry?
24.what is a void pointer? 25.why arithmetic operation can’t be performed on a void pointer? 26.differentiate between const char *a; char *const a; and char const *a; 27.compare array with pointer? 28.what is a NULL pointer? 29.what does ‘segmentation violation’ mean? 30.what does ‘Bus Error’ mean? 31.Define function pointers? 32.How do you initialize function pointers? Give an example? 33.where can function pointers be used?
what is an inline fuction??
how many argument we can pas in in a function
How do shell structures work?