How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST

Answer Posted / mohit jain

#define TURN_OFF_BIT_LAST(x) ((x) & ~1)

Is This Answer Correct ?    27 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

to find the closest pair

1812


Do pointers need to be initialized?

553


Can you explain the four storage classes in C?

632


What is the process of writing the null pointer?

600


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

1716






What is #include conio h?

581


Why we write conio h in c?

549


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

799


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 []);

1832


What is the size of empty structure in c?

579


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1060


What is getche() function?

599


How can I read and write comma-delimited text?

610


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

1558


How are 16- and 32-bit numbers stored?

711