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

21. #define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }

3 Answers  


What is the difference between Printf(..) and sprint(...) ?

0 Answers   InterGraph,


What are the primitive data types in c?

0 Answers  


1.)how to find d most repeated word in a string? string ="how do you do"?? output should be do

1 Answers   AAS, Nagarro, Vuram,


CAN WE DEFINE ANY FUNCTION WITHIN A FUNCTION.

15 Answers  






How do you define a function?

0 Answers  


for(i=1;i>0;i++); printf("i=%d",i); what will be the answer????

7 Answers  


What is the role of && operator in a program code?

0 Answers  


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

0 Answers   IBM,


What is the purpose of the statement: strcat (S2, S1)?

0 Answers  


#define DCHAR char* typedef char* TCHAR; if using these following variables will be declared like DCHAR ch1, ch2; TCHAR ch3, ch4; then what will be types of ch1, ch2, ch3 and ch4?

6 Answers   NDS,


Process by which one bit pattern in to another by bit wise operation is?

0 Answers   InterGraph,


Categories