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

How macro execution is faster than function ?

0 Answers   Wipro,


how to print 2-D array using a single for loop?

2 Answers   Mind Tree, TCS, Value Labs,


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

0 Answers  


we have to use realloc only after malloc or calloc ? or we can use initially with out depending on whether we are using malloc or calloc in our program ?

2 Answers  


To what value do nonglobal variables default? 1) auto 2) register 3) static

4 Answers  






What is a loop?

0 Answers  


I use turbo C which allocates 2 bytes for integers and 4 bytes for long. I tried to declare array of size 500000 of long type using the following code... long *arr; arr=(long *)(malloc)(500000 * sizeof(long)); It gives a warning that "Conversion may lose significant digits in function main"... And the resulting array size was very less around 8400 as compared to 500000. Any suggestions will be welcomed....

2 Answers  


What are the different file extensions involved when programming in C?

0 Answers  


write a program which will count occurance of a day between two dates.

1 Answers   IonIdea,


What does 1f stand for?

0 Answers  


how to copy a string without using c function

5 Answers  


How can I read and write comma-delimited text?

0 Answers  


Categories