#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 / jai
45
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the complete rules for header file searching?
How can I sort more data than will fit in memory?
How many identifiers are there in c?
code for find determinent of amatrix
Tell me about low level programming languages.
Explain what are compound statements?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is meant by operator precedence?
Can you please explain the difference between syntax vs logical error?
When should a type cast not be used?
What do the functions atoi(), itoa() and gcvt() do?
What is the heap?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
Explain the properties of union. What is the size of a union variable
What is a stream?