write a program to find out number of on bits in a number?
Answer Posted / anilkumar
int n ; \\any number
for(count=0;n&=(n-1); count++);
printf("%d", count);
| Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
How can a program be made to print the line number where an error occurs?
What are the 5 elements of structure?
write a progrmm in c language take user interface generate table using for loop?
What would be an example of a structure analogous to structure c?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
Is fortran still used in 2018?
What is an expression?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
What is a nested formula?
Tell me can the size of an array be declared at runtime?
What is enumerated data type in c?
List some of the dynamic data structures in C?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
What is the advantage of using #define to declare a constant?