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
What is an arrays?
Where are c variables stored in memory?
Define Spanning-Tree Protocol (STP)
#include
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Explain what is the difference between null and nul?
what is different between auto and local static? why should we use local static?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
"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
Explain what are header files and explain what are its uses in c programming?
Explain union. What are its advantages?
Is using exit() the same as using return?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
How to write a multi-statement macro?
What's the total generic pointer type?