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

number of times a digit is present in a number

2045


Write a program of advanced Fibonacci series.

1165


What is the difference between ā€˜g’ and ā€œgā€ in C?

4026


Write a program to reverse a given number in c?

1051


What is wrong with this initialization?

1018


What is an auto keyword in c?

1104


What are dangling pointers in c?

1259


Explain why c is faster than c++?

1086


Explain the use of 'auto' keyword in c programming?

1128


What is the modulus operator?

1222


Explain what is meant by 'bit masking'?

1218


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1244


write a program fibonacci series and palindrome program in c

1059


What are the 4 types of unions?

1050


Explain the concept and use of type void.

1122