#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
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
How can I use a preprocessorif expression to ?
What are the benefits of organizational structure?
Apart from dennis ritchie who the other person who contributed in design of c language.
What is the deal on sprintf_s return value?
What are the __date__ and __time__ preprocessor commands?
Does c have an equivalent to pascals with statement?
When is the “void” keyword used in a function?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
cavium networks written test pattern ..
What is assert and when would I use it?
Why isnt there a numbered, multi-level break statement to break out
Why is #define used?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What are reserved words with a programming language?