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 / mohammed sardar

Sorry above answer ; I did a mistake
t=0;
for(i=n; i>0; i--)
{
t|=(1<<p);
p++;
}
x=x&~t
t=t&y;
x=x|t;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I get back to the interactive keyboard if stdin is redirected?

1188


Explain threaded binary trees?

1158


What was noalias and what ever happened to it?

1042


In C language, a variable name cannot contain?

1276


What is pre-emptive data structure and explain it with example?

3726


Write a program to check prime number in c programming?

1093


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

2071


What are types of functions?

1040


Explain 'far' and 'near' pointers in c.

1140


How to compare array with pointer in c?

1104


What are the three constants used in c?

995


What is return in c programming?

970


How to find a missed value, if you want to store 100 values in a 99 sized array?

1411


What are pragmas and what are they good for?

997


Why c is called procedure oriented language?

1043