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

Explain what is the difference between null and nul?

1215


Write a program for Overriding.

1214


Write a program to print "hello world" without using a semicolon?

1121


What are the different types of objects used in c?

1083


Is linux written in c?

1084


What is structure in c definition?

1112


What is %g in c?

1122


Can you explain the four storage classes in C?

1170


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1374


Is there any demerits of using pointer?

1120


Explain the difference between #include "..." And #include <...> In c?

1093


Why is c called a mid-level programming language?

1248


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

1111


What is the difference between a string and an array?

1261


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1171