How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST

Answer Posted / asdf

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

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

812


When should you use a type cast?

595


What is function definition in c?

593


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

671


What is line in c preprocessor?

618






What are the 32 keywords in c?

639


When should a type cast not be used?

629


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1624


What are the uses of a pointer?

685


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

650


What is the difference between struct and union in C?

580


What is a example of a variable?

559


Differentiate between new and malloc(), delete and free() ?

679


Describe the order of precedence with regards to operators in C.

638


What is include directive in c?

651