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 will you delete a node in DLL?
Explain pointer. What are function pointers in C?
Is flag a keyword in c?
How do you convert strings to numbers in C?
What are the modifiers available in c programming language?
What is the size of structure pointer in c?
can we have joblib in a proc ?
How to write c functions that modify head pointer of a linked list?
Explain threaded binary trees?
What is difference between structure and union with example?
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.
What is #define?
What is printf () in c?
Which of these functions is safer to use : fgets(), gets()? Why?
How do I copy files?