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

how to TOGGLE Nth bit of variable in a MACRO

Answer Posted / kiran kumar yakkala

#define ~toggle(val,n) var^=1<<n


Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is function definition in c?

1118


Why is c used in embedded systems?

1174


What is a pointer and how it is initialized?

1231


can we have joblib in a proc ?

2381


Is c# a good language?

1059


What is operator precedence?

1281


What is difference between structure and union in c?

1036


What is the need of structure in c?

1186


define string ?

1169


What is ponter?

1326


What are global variables and explain how do you declare them?

1181


What is an operator?

1125


What are near, far and huge pointers?

1115


What are the string functions? List some string functions available in c.

1041


Why is c platform dependent?

1138