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...

write a program to find out number of on bits in a number?

Answer Posted / jaskarann

int i,a;
{
cout<<enter the no whose bits you want to find";
cin>>i;
a=i*8;
cout<<No. of bits in this number is<<a;
getch();

Is This Answer Correct ?    5 Yes 36 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a stream?

1150


What is the total generic pointer type?

1161


What do you understand by friend-functions? How are they used?

1212


What is use of pointer?

1092


how to build a exercise findig min number of e heap with list imlemented?

2077


How was c created?

1070


Explain can the sizeof operator be used to tell the size of an array passed to a function?

1078


Does free set pointer to null?

1012


What is the difference between call by value and call by reference in c?

1168


Why is struct padding needed?

1093


How can I discover how many arguments a function was actually called with?

1070


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2698


What is double pointer in c?

1043


general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

1077


Explain how can you tell whether two strings are the same?

1020