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


Please Help Members By Posting Answers For Below Questions

How can you find out how much memory is available?

604


What are reserved words?

639


How can you determine the size of an allocated portion of memory?

732


What is return in c programming?

503


What are the keywords in c?

632






What is the difference between break and continue?

598


define string ?

660


why wipro wase

1817


How does #define work?

638


Do you know the difference between exit() and _exit() function in c?

601


c program for searching a student details among 10 student details

1642


how to write optimum code to divide a 50 digit number with a 25 digit number??

2739


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

1775


Why do we use stdio h and conio h?

623


How was c created?

581