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 a stream?
What is the total generic pointer type?
What do you understand by friend-functions? How are they used?
What is use of pointer?
how to build a exercise findig min number of e heap with list imlemented?
How was c created?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
Does free set pointer to null?
What is the difference between call by value and call by reference in c?
Why is struct padding needed?
How can I discover how many arguments a function was actually called with?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
What is double pointer in c?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
Explain how can you tell whether two strings are the same?