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 an arrays?
Subtract Two Number Without Using Subtraction Operator
What are the 4 data types?
int far *near * p; means
Explain about the functions strcat() and strcmp()?
What is header file definition?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
By using C language input a date into it and if it is right?
Why is %d used in c?
Give basis knowledge of web designing ...
How do you define a function?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
How do you print only part of a string?
What are the key features in c programming language?
Explain what is meant by high-order and low-order bytes?