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
How are 16- and 32-bit numbers stored?
Differentiate between the = symbol and == symbol?
Explain enumerated types in c language?
How can I determine whether a machines byte order is big-endian or little-endian?
What is the difference between Printf(..) and sprint(...) ?
Why malloc is faster than calloc?
How can you determine the size of an allocated portion of memory?
What are the 4 data types?
What is typedef?
Between macros and functions,which is better to use and why?
What is a macro, and explain how do you use it?
what do u mean by Direct access files? then can u explain about Direct Access Files?
What is the difference between printf and scanf )?
How many types of operators are there in c?
How can I invoke another program or command and trap its output?