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
What language is lisp written in?
What is 1f in c?
What are loops in c?
how to introdu5ce my self in serco
Should a function contain a return statement if it does not return a value?
Can we assign string to char pointer?
What is union and structure in c?
What is far pointer in c?
define string ?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
Explain what are the standard predefined macros?
What is clrscr ()?
Why pointers are used in c?
program to convert a integer to string in c language'