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

Write a factorial program using C.

0 Answers   iNautix,


How can type-insensitive macros be created?

0 Answers  


What is the benefit of using const for declaring constants?

0 Answers  


Differentiate between functions getch() and getche().

0 Answers  


Is linux written in c?

0 Answers  






What is string function c?

0 Answers  


how many key words availabel in c a) 28 b) 31 c) 32

0 Answers  


What are the advantages of c preprocessor?

0 Answers  


How can I list all of the predefined identifiers?

0 Answers  


How do I read the arrow keys? What about function keys?

0 Answers  


atoi, which takes a string and converts it to an integer. write a program that reads lines(using getline), converts each line to an integer using atoi and computes the average of all the numbers read. also compute the standard deviation

0 Answers  


Code for calculating square root without using library function, of math.h

4 Answers   IBM,


Categories