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
I need testPalindrome and removeSpace
#include
How to declare a variable?
What is indirection in c?
Where static variables are stored in memory in c?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
Differentiate between #include<...> and #include '...'
How can you avoid including a header more than once?
What are c header files?
What are the Advantages of using macro
What is structure in c language?
What is bubble sort in c?
What is context in c?
define string ?
What is the use of bitwise operator?
Explain spaghetti programming?