CopyBits(x,p,n,y)
copy n LSBs from y to x starting LSB at 'p'th position.
Answer Posted / mohammed sardar
t=0;
for(i=n; i>0; i--)
{
t|=(1<<p);
p++;
}
t=t&y;
x=x&t;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does malloc () calloc () realloc () free () do?
Difference between Function to pointer and pointer to function
write a program for the normal snake games find in most of the mobiles.
What is pointer to pointer in c with example?
What is the purpose of the preprocessor directive error?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
What is c language & why it is used?
What are the types of assignment statements?
What is indirection?
What is a program flowchart and how does it help in writing a program?
Function calling procedures? and their differences? Why should one go for Call by Reference?
Why doesnt the call scanf work?
Where are the auto variables stored?
Explain the difference between null pointer and void pointer.
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.