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
What is the heap?
What are the storage classes in C?
Why isnt any of this standardized in c?
What is bin sh c?
What is storage class?
What is pragma c?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What is queue in c?
Explain threaded binary trees?
string reverse using recursion
How we can insert comments in a c program?
which is an algorithm for sorting in a growing Lexicographic order
What is the difference between fread and fwrite function?
Is this program statement valid? INT = 10.50;
Is register a keyword in c?