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
Three major criteria of scheduling.
is it possible to change the default calling convention in c ?
who is the founder of c
19 Answers College School Exams Tests, HP,
How do you write a program which produces its own source code as its output?
Explain how do you override a defined macro?
What is 'bus error'?
do u print this format '(((())))'. This brackets is based on user input like 4 or 5 or 6,without using any loop's?
Can we declare a function inside a function in c?
What is volatile variable in c?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
#include<stdio.h> #include<conio.h> void main() { char ch='\356'; printf("%d",ch); } o/p=-18 why?plz.explain
How can I find leaf node with smallest level in a binary tree?