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
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
What is the size of structure in c?
Explain what are binary trees?
What is define c?
What is the difference between constant pointer and constant variable?
What are bitwise shift operators in c programming?
Without Computer networks, Computers will be half the use. Comment.
What is const volatile variable in c?
Differentiate between functions getch() and getche().
Why do we use int main instead of void main in c?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
What are the advantage of c language?
Differentiate abs() function from fabs() function.
What are the types of unary operators?
what is bit rate & baud rate? plz give wave forms