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
C program to find frequency of each character in a text file?
What is the purpose of main() function?
What is f'n in math?
typedef struct { int i:8; char c:9; float f:20; }st_temp; int getdata(st_temp *stptr) { stptr->i = 99; return stptr->i; } main() { st_temp local; int i; local.c = 'v'; local.i = 9; local.f = 23.65; printf(" %d %c %f",local.i,local.c,local.f); i = getdata(&local); printf("\n %d",i); getch(); } why there there is an error during compiling the above program?
WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE?
8 Answers Carphone Warehouse, IBM, SAS,
How can you return multiple values from a function?
What are qualifiers in c?
can you change name of main()?how?
Can include files be nested?
What does extern mean in a function declaration?
Subtract Two Number Without Using Subtraction Operator
What is .obj file in c?