How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST
Answer Posted / narendra
#define TURN_OFF_BIT_LAST(x) ((~0) >> 1) & x)
in the question it is asking to clear MSB not LSB
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are compound statements?
How do I read the arrow keys? What about function keys?
Can we use visual studio for c?
What are keywords in c with examples?
What is variable and explain rules to declare variable in c?
Should a function contain a return statement if it does not return a value?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
What is difference between main and void main?
What is null pointer constant?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
Why do we use & in c?
how to find binary of number?
How variables are declared in c?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
Define C in your own Language.