#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 / lusi dash
55
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is the difference between array and structure in c?
How are pointers declared in c?
What is function what are the types of function?
What is c variable?
What is #include called?
Which programming language is best for getting job 2020?
Why doesnt long int work?
What is the difference between union and anonymous union?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
Why is c called c?
How #define works?
Explain what are the standard predefined macros?
Difference between Function to pointer and pointer to function
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What is stack in c?