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

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 does malloc () calloc () realloc () free () do?

1063


Difference between Function to pointer and pointer to function

1069


write a program for the normal snake games find in most of the mobiles.

2257


What is pointer to pointer in c with example?

1074


What is the purpose of the preprocessor directive error?

1272


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

1876


What is c language & why it is used?

1110


What are the types of assignment statements?

1066


What is indirection?

1092


What is a program flowchart and how does it help in writing a program?

1139


Function calling procedures? and their differences? Why should one go for Call by Reference?

1083


Why doesnt the call scanf work?

1195


Where are the auto variables stored?

1149


Explain the difference between null pointer and void pointer.

1084


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

2094