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 a node in c?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
please give me some tips for the placement in the TCS.
Why do we use stdio h and conio h?
Can i use “int” data type to store the value 32768? Why?
I need testPalindrome and removeSpace
#include
What is c method?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
How can you tell whether a program was compiled using c versus c++?
What are the 4 types of organizational structures?
What is a spanning Tree?
What is the purpose of the preprocessor directive error?
What is the difference between if else and switchstatement
What is atoi and atof in c?
Is null a keyword in c?