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


Please Help Members By Posting Answers For Below Questions

What is the difference between ā€˜gā€™ and ā€œgā€ in C?

2500


How do I determine whether a character is numeric, alphabetic, and so on?

618


How to explain the final year project as a fresher please answer with sample project

463


What is optimization in c?

562


What is static memory allocation? Explain

627






What is non linear data structure in c?

567


What is the difference between pure virtual function and virtual function?

643


What is an lvalue?

627


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

1535


Tell me about low level programming languages.

638


find out largest elemant of diagonalmatrix

1643


How does placing some code lines between the comment symbol help in debugging the code?

540


Explain what are run-time errors?

605


What is the general form of a C program?

596


What are external variables in c?

543