How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST

Answer Posted / dorian

#define TURN_OFF_BIT_LAST(x) ((x >> 1) << 1)

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is huge pointer in c?

585


What does char * * argv mean in c?

625


Where in memory are my variables stored?

637


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

631


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

1879






What are the general description for loop statement and available loop types in c?

688


How is pointer initialized in c?

587


Are enumerations really portable?

596


Linked lists -- can you tell me how to check whether a linked list is circular?

646


What is the difference between new and malloc functions?

580


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1186


What are the salient features of c languages?

625


How is actual parameter different from the formal parameter?

591


Explain how can I read and write comma-delimited text?

658


What is the difference between constant pointer and constant variable?

748