#include<stdio.h>
int SumElement(int *,int);
void main(void)
{
int x[10];
int i=10;
for(;i;)
{
i--;
*(x+i)=i;
}
printf("%d",SumElement(x,10));
}
int SumElement(int array[],int size)
{
int i=0;
float sum=0;
for(;i<size;i++)
sum+=array[i];
return sum;
}
output?
Answer Posted / lusi dash
55
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What does 2n 4c mean?
What is an expression?
Function calling procedures? and their differences? Why should one go for Call by Reference?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
Not all reserved words are written in lowercase. TRUE or FALSE?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
What are the three constants used in c?
Can we access the array using a pointer in c language?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
Explain what does the function toupper() do?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
Explain how do you use a pointer to a function?
what is the difference between 123 and 0123 in c?
What is use of bit field?