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 program to print the following series 2 5 11 17 23 31 41 47 59 ...

2 Answers  


main() { float a=8.8; double b=8.8; if(a==b) printf("Equal"); else printf("not equal"); getch(); } what is the output? with reason

6 Answers   CSC,


write a programe returns the number of times the character appears in the string

2 Answers  


What is FIFO?

3 Answers  


A stack can be implemented only using array?if not what is used?

3 Answers   InterGlobal,


What is use of null pointer in c?

0 Answers  


Write a program to print prime nums from 1-20 using c programing?

13 Answers   IBM,


How do you define structure?

0 Answers  


please give me some tips for the placement in the TCS.

0 Answers   TCS,


In C program, at end of the program we will give as "return 0" and "return 1", what they indicate? Is it mandatory to specify them?

5 Answers  


write the output of following code .. main() { static int a[]={10,20,30,40,50}; int *ptr=a; static int arr[2][2]={1,2,3,4}; char str[]="ABCD * 4#"; char *s=str+2; int i,j; for(i=0;i<5,i++) printf("%d",*ptr++); for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d\n",*(*(n+i)+j)); printf("%c\n%c\n%c\n",*(str+2),*s++,*--s); }

1 Answers  


what is difference between array,strutter,union and pointers

3 Answers   CTS, Lovely Professional University, Mannar Company,


Categories