write a program to find the sum of the array elements in c
language?
Answer Posted / sumit aseri
/* programm of sum of array value*/
#include<stdio.h>
#include<conio.h>
void main()
{
int array[10],i,sum=0;
for(i=0;i<10;i++)
{
scanf("%d",&array[i];
printf("entered digits are=%d",array[i];
}
sum=sum+array[i]'
for(i=0;i<10;i++)
{
printf("the sum of digits=%d",sum);
}
getch();
}
/*join me on orkut search by name. i will solve your
problem*/
| Is This Answer Correct ? | 19 Yes | 13 No |
Post New Answer View All Answers
Explain c preprocessor?
difference between object file and executable file
What are the characteristics of arrays in c?
How arrays can be passed to a user defined function
What is the use of structure padding in c?
how to execute a program using if else condition and the output should enter number and the number is odd only...
Why we use stdio h in c?
What are the header files used in c language?
What is a memory leak? How to avoid it?
What is array within structure?
What is the purpose of the statement: strcat (S2, S1)?
Explain what are the standard predefined macros?
Why should I use standard library functions instead of writing my own?
the question is that what you have been doing all these periods (one year gap)
What is New modifiers?