Welcome Message

Hi, welcome to my website. This is a place where you can get all the questions, puzzles, algorithms asked in interviews and their solutions. Feel free to contact me if you have any queries / suggestions and please leave your valuable comments.. Thanks for visiting -Pragya.

December 28, 2009

ex write a program to reverse 20th bit of a 32 bit int

XOR the given number with a number whose 20th digit is one and all other digits are zero. THis will always work :)

XOR : returns true if both the digits are different , false otherwise :)

http://www.vipan.com/htdocs/bitwisehelp.html

No comments: