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 does == mean in texting?
How reliable are floating-point comparisons?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
Is swift based on c?
What is the function of this pointer?
Which function in C can be used to append a string to another string?
Difference between linking and loading?
In C language, a variable name cannot contain?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is difference between structure and union with example?
What is the usage of the pointer in c?
What is break statement?
Write a program in c to replace any vowel in a string with z?
Explain what are its uses in c programming?
What is meant by preprocessor in c?