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
Which header file is used for clrscr?
hi send me sample aptitude papers of cts?
Are there namespaces in c?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
What is the use of sizeof () in c?
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.
Is c++ based on c?
Explain what is the stack?
What is declaration and definition in c?
Explain how do you view the path?
What is the easiest sorting method to use?
code for replace tabs with equivalent number of blanks
Explain the bubble sort algorithm.
Is javascript based on c?