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 c language in simple words?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What is wrong in this statement? scanf(“%d”,whatnumber);
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
write a program to find the given number is prime or not
How is actual parameter different from the formal parameter?
what is reason of your company position's in india no. 1.
Tell me with an example the self-referential structure?
What is difference between structure and union with example?
What are the uses of null pointers?
What are the two forms of #include directive?
What is the use of in c?
What is the difference between mpi and openmp?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.