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

we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

1102


How can I remove the leading spaces from a string?

1096


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1012


What is the use of ?

993


Why do we need functions in c?

955


Using which language Test cases are added in .ptu file of RTRT unit testing???

4216


What is the difference between int main and void main?

998


what do you mean by inline function in C?

1007


What does p mean in physics?

988


What is action and transformation in spark?

1081


write a program to rearrange the array such way that all even elements should come first and next come odd

2223


What is memory leak in c?

1061


Explain what is page thrashing?

1052


Differentiate between full, complete & perfect binary trees.

1051


Why is c so popular?

1117