Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2465


What does typeof return in c?

1162


Why c is called a middle level language?

1162


What is %s and %d in c?

1107


What are types of functions?

1080


What do the functions atoi(), itoa() and gcvt() do?

1247


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

1064


What is a nested formula?

1239


What is n in c?

1114


Which is more efficient, a switch statement or an if else chain?

1081


What is sizeof array in c?

1114


Where static variables are stored in memory in c?

1052


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

1186


how to execute a program using if else condition and the output should enter number and the number is odd only...

2374


Are comments included during the compilation stage and placed in the EXE file as well?

1128