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

Wt are the Buses in C Language

2753


What are the storage classes in C?

625


Describe dynamic data structure in c programming language?

606


what is the difference between 123 and 0123 in c?

725


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1848






What is the difference between c and python?

586


What is c standard library?

692


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1411


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

695


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4179


What is the purpose of & in scanf?

598


How macro execution is faster than function ?

668


What is a protocol in c?

559


What are the similarities between c and c++?

601


What is volatile variable how do you declare it?

566