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 using bitwise operators to invert even bits of
a given number.

Answer Posted / ayaskanta

Use Xor operation. Xor ing with 1 coverts a 0 to 1 and a 1
to zero...

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the heap?

1157


What are the storage classes in C?

1075


Why isnt any of this standardized in c?

1023


What is bin sh c?

988


What is storage class?

1019


What is pragma c?

1059


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1151


What is queue in c?

1038


Explain threaded binary trees?

1110


string reverse using recursion

2376


How we can insert comments in a c program?

1073


which is an algorithm for sorting in a growing Lexicographic order

1749


What is the difference between fread and fwrite function?

1035


Is this program statement valid? INT = 10.50;

1087


Is register a keyword in c?

996