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 meant by type casting?

1106


Is c dynamically typed?

1213


how to create duplicate link list using C???

2603


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2209


What is c programing language?

1134


What is time null in c?

1111


Was 2000 a leap year?

1090


Multiply an Integer Number by 2 Without Using Multiplication Operator

823


Explain how can a program be made to print the name of a source file where an error occurs?

1250


#include { printf("Hello"); } how compile time affects when we add additional header file .

1942


How can I do peek and poke in c?

1136


How are pointers declared in c?

1115


How can I recover the file name given an open stream or file descriptor?

1141


What is the difference between mpi and openmp?

1357


Why should I use standard library functions instead of writing my own?

1314