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 data type long in c?
Can I initialize unions?
What is the advantage of a random access file?
How do we make a global variable accessible across files? Explain the extern keyword?
What is a loop?
#include
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
What does printf does?
Can main () be called recursively?
Is c dynamically typed?
What is the use of linkage in c language?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Is flag a keyword in c?
How is a pointer variable declared?