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
How macro execution is faster than function ?
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;
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 ?
To what value do nonglobal variables default? 1) auto 2) register 3) static
What is a loop?
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....
What are the different file extensions involved when programming in C?
write a program which will count occurance of a day between two dates.
What does 1f stand for?
how to copy a string without using c function
How can I read and write comma-delimited text?