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
Explain union. What are its advantages?
How does struct work in c?
Does c have function or method?
How can you call a function, given its name as a string?
What is call by reference in functions?
write a program to generate address labels using structures?
How do you redirect a standard stream?
What are global variables and how do you declare them?
Is main is a keyword in c?
What is a structure in c language. how to initialise a structure in c?
What is a pointer in c?
What is the purpose of void in c?
What is the significance of c program algorithms?
When was c language developed?
write a program to print data of 5 five students with structures?