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 / qint

num ^ (1 << n)

Is This Answer Correct ?    31 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can a program be made to print the name of a source file where an error occurs?

1161


Can we compile a program without main() function?

1090


What is the correct declaration of main?

1177


What are global variables?

1143


What is bss in c?

1061


What are structure types in C?

1071


How can you access memory located at a certain address?

1083


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1080


What is the deal on sprintf_s return value?

1086


What is the explanation for prototype function in c?

942


What is break in c?

1006


What is the difference between exit() and _exit() function in c?

1042


Do pointers take up memory?

1107


Describe wild pointers in c?

1081


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6785