#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
What is variable initialization and why is it important?
What are Macros? What are its advantages and disadvantages?
Why is python slower than c?
What are reserved words?
What is calloc()?
What is abstract data structure in c?
Why #include is used in c language?
What is c++ used for today?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
Why does everyone say not to use gets?
What is the value of h?
Write a program in c to replace any vowel in a string with z?
What is context in c?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
What is bash c?