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

#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

1152


What does 1f stand for?

1156


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

1085


How to Throw some light on the splay trees?

1062


What is realloc in c?

1087


What is const keyword in c?

1159


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1162


What are nested functions in c?

1014


What are header files why are they important?

1086


What are the parts of c program?

1101


Why c is procedure oriented?

1068


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

4283


What is the size of a union variable?

1053


What is #line?

1051


How can I read data from data files with particular formats?

1046