#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 / mannucse
55
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Do you know the use of 'auto' keyword?
What is meant by operator precedence?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What is variables in c?
what is bit rate & baud rate? plz give wave forms
Why we use stdio h in c?
int far *near * p; means
What is the difference between array and linked list in c?
Where are the auto variables stored?
How arrays can be passed to a user defined function
Can a variable be both constant and volatile?
What does the c preprocessor do?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
Which is the best website to learn c programming?
What is the best way to comment out a section of code that contains comments?