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

Explain union. What are its advantages?

1006


How does struct work in c?

1030


Does c have function or method?

940


How can you call a function, given its name as a string?

1098


What is call by reference in functions?

1319


write a program to generate address labels using structures?

4517


How do you redirect a standard stream?

1049


What are global variables and how do you declare them?

1015


Is main is a keyword in c?

1069


What is a structure in c language. how to initialise a structure in c?

1018


What is a pointer in c?

1407


What is the purpose of void in c?

991


What is the significance of c program algorithms?

1095


When was c language developed?

1140


write a program to print data of 5 five students with structures?

2004