Function shall sum members of given one-dimensional array. However, it should sum only members whose number of ones in the binary representation is higher than defined threshold (e.g. if the threshold is 4, number 255 will be counted and 15 will not)
- The array length is arbitrary
- output the results to the stdout


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Explain why can’t constant values be used to define an array’s initial size?

0 Answers  


implement general tree using link list

1 Answers   Wipro,


Write a code on reverse string and its complexity.

0 Answers   Expedia,


What are the types of data types and explain?

0 Answers  


write a C program, given number is double without using addt ion and multiplication operator?ex:n=6,ans=12,pls send me ans to goviseenu@gmail.com

6 Answers  


How can I do serial ("comm") port I/O?

0 Answers   Celstream,


Why calloc is better than malloc?

0 Answers  


program for reversing a selected line word by word when multiple lines are given without using strrev

0 Answers   IBM,


How many parameters should a function have?

0 Answers  


List some of the dynamic data structures in C?

0 Answers  


Write a program that accept anumber in words

0 Answers  


What is pointer & why it is used?

0 Answers  


Categories