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

Toggle nth bit in a given integer - num

Answer Posted / sahil

num=num ^ (1<<(n-1));

Is This Answer Correct ?    51 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is substring in c?

1207


What is the difference between printf and scanf )?

1098


Is c easier than java?

1081


What is the use of #define preprocessor in c?

1081


What is the general form of function in c?

1022


Do pointers take up memory?

1160


What is string constants?

1149


Which is the memory area not included in C program? give the reason

1949


What is the use of sizeof?

1022


What do you mean by recursion in c?

1114


what is event driven software and what is procedural driven software?

2581


What does %d do?

1279


how to build a exercise findig min number of e heap with list imlemented?

2077


What are local static variables?

1154


what type of questions arrive in interview over c programming?

2031