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
Describe wild pointers in c?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What tq means in chat?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
Why is c fast?
Can we use visual studio for c?
What are the types of pointers in c?
List some of the static data structures in C?
Why is not a pointer null after calling free?
how to write optimum code to divide a 50 digit number with a 25 digit number??
What are the different types of control structures in programming?
What are # preprocessor operator in c?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
Write a code on reverse string and its complexity.