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

How will you delete a node in DLL?

674


Explain pointer. What are function pointers in C?

620


Is flag a keyword in c?

673


How do you convert strings to numbers in C?

701


What are the modifiers available in c programming language?

726






What is the size of structure pointer in c?

605


can we have joblib in a proc ?

1650


How to write c functions that modify head pointer of a linked list?

537


Explain threaded binary trees?

670


What is difference between structure and union with example?

586


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1485


What is #define?

569


What is printf () in c?

574


Which of these functions is safer to use : fgets(), gets()? Why?

627


How do I copy files?

617