write a program to find out number of on bits in a number?
Answer Posted / jaskarann
int i,a;
{
cout<<enter the no whose bits you want to find";
cin>>i;
a=i*8;
cout<<No. of bits in this number is<<a;
getch();
| Is This Answer Correct ? | 5 Yes | 36 No |
Post New Answer View All Answers
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
Which is better pointer or array?
Explain how do you determine whether to use a stream function or a low-level function?
Explain the use of keyword 'register' with respect to variables.
Which built-in library function can be used to match a patter from the string?
What are pointers?
What is a floating point in c?
Where we use clrscr in c?
Why can’t we compare structures?
What is the function of this pointer?
What is difference between Structure and Unions?
What do header files do?
Is c a great language, or what?
How can a number be converted to a string?
What are the 4 types of organizational structures?