#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


Please Help Members By Posting Answers For Below Questions

Do you know the use of 'auto' keyword?

664


What is meant by operator precedence?

680


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1457


What is variables in c?

611


what is bit rate & baud rate? plz give wave forms

1523






Why we use stdio h in c?

587


int far *near * p; means

3127


What is the difference between array and linked list in c?

605


Where are the auto variables stored?

628


How arrays can be passed to a user defined function

581


Can a variable be both constant and volatile?

564


What does the c preprocessor do?

625


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.?

632


Which is the best website to learn c programming?

585


What is the best way to comment out a section of code that contains comments?

786