#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
Explain what are run-time errors?
What is this infamous null pointer, anyway?
What is meant by type specifiers?
write a proram to reverse the string using switch case?
What is break in c?
If null and 0 are equivalent as null pointer constants, which should I use?
What does 2n 4c mean?
Is void a keyword in c?
Why we not create function inside function.
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
What is a node in c?
What is the deal on sprintf_s return value?
What does char * * argv mean in c?
What are runtime error?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12