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

main()
{
int n;
printf("\n Enter The Number Whose bits have to find");
scanf("%d",&n);
i=i*8;
printf("\n The number of bits in the given number is %d",i);
}

Is This Answer Correct ?    2 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an arrays?

1072


Where are c variables stored in memory?

1065


Define Spanning-Tree Protocol (STP)

1125


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

1892


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2445


Explain what is the difference between null and nul?

1149


what is different between auto and local static? why should we use local static?

1124


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

1030


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

1095


Explain what are header files and explain what are its uses in c programming?

1153


Explain union. What are its advantages?

1077


Is using exit() the same as using return?

1344


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1274


How to write a multi-statement macro?

1041


What's the total generic pointer type?

1052