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


Please Help Members By Posting Answers For Below Questions

What does == mean in texting?

662


How reliable are floating-point comparisons?

626


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

631


Is swift based on c?

638


What is the function of this pointer?

672






Which function in C can be used to append a string to another string?

641


Difference between linking and loading?

690


In C language, a variable name cannot contain?

740


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

624


What is difference between structure and union with example?

593


What is the usage of the pointer in c?

606


What is break statement?

631


Write a program in c to replace any vowel in a string with z?

691


Explain what are its uses in c programming?

590


What is meant by preprocessor in c?

533