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

How are 16- and 32-bit numbers stored?

1326


Differentiate between the = symbol and == symbol?

1363


Explain enumerated types in c language?

1104


How can I determine whether a machines byte order is big-endian or little-endian?

1124


What is the difference between Printf(..) and sprint(...) ?

1633


Why malloc is faster than calloc?

1121


How can you determine the size of an allocated portion of memory?

1361


What are the 4 data types?

1057


What is typedef?

1504


Between macros and functions,which is better to use and why?

2319


What is a macro, and explain how do you use it?

1123


what do u mean by Direct access files? then can u explain about Direct Access Files?

2145


What is the difference between printf and scanf )?

1149


How many types of operators are there in c?

1088


How can I invoke another program or command and trap its output?

1148