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
number of times a digit is present in a number
Write a program of advanced Fibonacci series.
What is the difference between āgā and āgā in C?
Write a program to reverse a given number in c?
What is wrong with this initialization?
What is an auto keyword in c?
What are dangling pointers in c?
Explain why c is faster than c++?
Explain the use of 'auto' keyword in c programming?
What is the modulus operator?
Explain what is meant by 'bit masking'?
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?
write a program fibonacci series and palindrome program in c
What are the 4 types of unions?
Explain the concept and use of type void.