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
If fflush wont work, what can I use to flush input?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
How can a program be made to print the name of a source file where an error occurs?
Explain argument and its types.
What is the ANSI C Standard?
Can we compile a program without main() function?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Explain how do you determine a file’s attributes?
Why do we use c for the speed of light?
What is function and its example?
How will you delete a node in DLL?
What is the use of getchar() function?
What is the use of the function in c?
What is the advantage of an array over individual variables?
What is quick sort in c?