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 the differnce between programing langauge and tool? is sas is a programing langauge r tool?
What does typeof return in c?
Why c is called a middle level language?
What is %s and %d in c?
What are types of functions?
What do the functions atoi(), itoa() and gcvt() do?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
What is a nested formula?
What is n in c?
Which is more efficient, a switch statement or an if else chain?
What is sizeof array in c?
Where static variables are stored in memory in c?
How do I determine whether a character is numeric, alphabetic, and so on?
how to execute a program using if else condition and the output should enter number and the number is odd only...
Are comments included during the compilation stage and placed in the EXE file as well?