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

Write a program or provide a pseudo code to flip the 2nd bit
of the 32 bit number ! (Phone Screen)

Answer Posted / ankit parikh

x-OR the number with 0x02.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is calloc better than malloc?

1023


How does struct work in c?

1090


What is the most efficient way to count the number of bits which are set in an integer?

1064


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3921


What are preprocessor directives in c?

1102


What is the use of bitwise operator?

1133


What is the use of ?

1042


Explain how are 16- and 32-bit numbers stored?

1272


What is time complexity c?

1000


Can we declare a function inside a function in c?

1042


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2439


What is the heap?

1221


Explain what is operator promotion?

1088


What are static variables in c?

1084


What does the error message "DGROUP exceeds 64K" mean?

1229