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

Which header file is used for clrscr?

1051


hi send me sample aptitude papers of cts?

2164


Are there namespaces in c?

1120


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1275


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3950


What is the use of sizeof () in c?

1046


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

5457


Is c++ based on c?

1070


Explain what is the stack?

1097


What is declaration and definition in c?

1085


Explain how do you view the path?

1165


What is the easiest sorting method to use?

1160


code for replace tabs with equivalent number of blanks

2156


Explain the bubble sort algorithm.

1056


Is javascript based on c?

1061