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
What is meant by type casting?
Is c dynamically typed?
how to create duplicate link list using C???
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What is c programing language?
What is time null in c?
Was 2000 a leap year?
Multiply an Integer Number by 2 Without Using Multiplication Operator
Explain how can a program be made to print the name of a source file where an error occurs?
#include
How can I do peek and poke in c?
How are pointers declared in c?
How can I recover the file name given an open stream or file descriptor?
What is the difference between mpi and openmp?
Why should I use standard library functions instead of writing my own?