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
How many levels of pointers can you have?
how to introdu5ce my self in serco
When should the volatile modifier be used?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
What language is c written?
Hai what is the different types of versions and their differences
Describe the difference between = and == symbols in c programming?
What is a lookup table in c?
Why header files are used?
In C language, a variable name cannot contain?
Explain what are global variables and explain how do you declare them?
How would you obtain the current time and difference between two times?
which type of aspect you want from the student.
When should a type cast be used?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58