Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain c preprocessor?

1112


difference between object file and executable file

6726


What are the characteristics of arrays in c?

1054


How arrays can be passed to a user defined function

1023


What is the use of structure padding in c?

1072


how to execute a program using if else condition and the output should enter number and the number is odd only...

2302


Why we use stdio h in c?

1036


What are the header files used in c language?

1055


What is a memory leak? How to avoid it?

1348


What is array within structure?

1127


What is the purpose of the statement: strcat (S2, S1)?

1171


Explain what are the standard predefined macros?

1119


Why should I use standard library functions instead of writing my own?

1270


the question is that what you have been doing all these periods (one year gap)

2086


What is New modifiers?

1130