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 / narendra

#define TURN_OFF_BIT_LAST(x) ((~0) >> 1) & x)
in the question it is asking to clear MSB not LSB

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the value of c?

1074


What are two dimensional arrays alternatively called as?

1198


What is difference between function overloading and operator overloading?

1098


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2551


How arrays can be passed to a user defined function

1035


Explain what is a const pointer?

1091


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1809


Is c weakly typed?

1034


Difference between Shallow copy and Deep copy?

2032


Explain how do you view the path?

1185


Is c easier than java?

1086


What is an example of structure?

1049


How can I implement a delay, or time a users response, with sub-second resolution?

1088


Can one function call another?

1122


Write a program to know whether the input number is an armstrong number.

1138