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

illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

2024


List a few unconditional control statement in c.

932


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1922


Explain built-in function?

1093


Explain can you assign a different address to an array tag?

1017


How can I find the modification date and time of a file?

1030


What does the file stdio.h contain?

1001


What are 3 types of structures?

1030


please explain every phase in the "SDLC" in the dotnet.

2564


What is the usage of the pointer in c?

1045


Is c still used?

1000


Why is C language being considered a middle level language?

1047


Can a pointer be static?

1025


When was c language developed?

1142


What does != Mean in c?

990