write a program to find the sum of the array elements in c
language?
Answer Posted / uday
#include<stdio.h>
void main()
{
int a[i],sum=0;
printf("enter n value");
scanf("%d",&n);
for(i=0;i<n,i++)
{
scanf("%d",&a[i])
}
for(i=0;i<n;i++)
{
sum=sum+a[i];
}
printf("sum=%d");
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
i got 75% in all semester am i eligible for your company
How can variables be characterized?
What are the standard predefined macros?
Write a program to reverse a linked list in c.
Explain how do you override a defined macro?
Why we use stdio h in c?
What is the difference between strcpy() and memcpy() function in c programming?
If I have a char * variable pointing to the name of a function ..
application attempts to perform an operation?
What is structure pointer in c?
What is a scope resolution operator in c?
What is meant by keywords in c?
what is recursion in C
What is bubble sort in c?
write a program for the normal snake games find in most of the mobiles.