CopyBits(x,p,n,y)
copy n LSBs from y to x starting LSB at 'p'th position.
Answer Posted / yash
t =((~(~0<<n))<<p)
x = x & ~t;
y = y & t;
x=x|y;
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is calloc in c?
Can you write a programmer for FACTORIAL using recursion?
Which is the memory area not included in C program? give the reason
Write a code on reverse string and its complexity.
What is the use of gets and puts?
Where register variables are stored in c?
write a program to find out prime number using sieve case?
Array is an lvalue or not?
What is a memory leak? How to avoid it?
What is openmp in c?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
what is different between auto and local static? why should we use local static?
How to declare a variable?
What’s a signal? Explain what do I use signals for?
What is data structure in c and its types?