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...

Write a function that accepts two numbers,say a and b and
makes bth bit of a to 0.No other bits of a should get
changed.

Answer Posted / sandeep ambekar

Macro to Set a particular Bit..
#define SetBit(x,y) x | 0x1<<y

Macro to Clear a particular Bit..
#define ClearBit(x,y) x & ~(0x1<<y)

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2224


What is #error and use of it?

1345


What are the 4 types of programming language?

1187


What is const keyword in c?

1218


What are the application of void data type in c?

1231


What is variables in c?

1094


show how link list can be used to repersent the following polynomial i) 5x+2

2395


Write a program to reverse a string.

1141


What are the complete rules for header file searching?

1130


What does the c in ctime mean?

1159


c program for searching a student details among 10 student details

2141


What is pointer to pointer in c language?

1210


What are valid signatures for the Main function?

1290


Explain why can’t constant values be used to define an array’s initial size?

1398


How can I delete a file?

1122