write a program to find out number of on bits in a number?
Answer Posted / anilkumar
int n ; \\any number
for(count=0;n&=(n-1); count++);
printf("%d", count);
| Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
What is 2c dna?
Is it possible to initialize a variable at the time it was declared?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
Explain about the functions strcat() and strcmp()?
What are examples of structures?
Write a program to generate the Fibinocci Series
What is fflush() function?
What are the key features in c programming language?
write a program to print data of 5 five students with structures?
What is a stream?
What does double pointer mean in c?
What is the purpose of clrscr () printf () and getch ()?
What is the best style for code layout in c?
What are categories used for in c?
How many keywords (reserve words) are in c?