Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST

Answer Posted / manoj

#define TURN_OFF_BIT_LAST(x) ((x) & 1) ? ((x) &= ((~0) <<
1)):(x)=(x)

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is multithreading possible in c?

1011


What is 1f in c?

2654


What is f'n in math?

1068


What is the purpose of main() function?

1249


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

2073


Can you please explain the difference between strcpy() and memcpy() function?

1070


Explain the properties of union. What is the size of a union variable

1186


Explain what is the difference between functions getch() and getche()?

1051


What is hashing in c language?

1312


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

1067


What are keywords in c with examples?

1087


What is 1d array in c?

1091


Write a code to generate a series where the next element is the sum of last k terms.

1228


struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

1298


Is c pass by value or reference?

1037