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

#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

1114


Which is better pointer or array?

1022


Explain how do you determine whether to use a stream function or a low-level function?

1076


Explain the use of keyword 'register' with respect to variables.

1031


Which built-in library function can be used to match a patter from the string?

1297


What are pointers?

1102


What is a floating point in c?

1071


Where we use clrscr in c?

1131


Why can’t we compare structures?

1265


What is the function of this pointer?

1329


What is difference between Structure and Unions?

1249


What do header files do?

1072


Is c a great language, or what?

1109


How can a number be converted to a string?

1322


What are the 4 types of organizational structures?

1095