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...


#include<stdio.h>
int SumElement(int *,int);
void main(void)
{
int x[10];
int i=10;
for(;i;)
{
i--;
*(x+i)=i;

}
printf("%d",SumElement(x,10));
}
int SumElement(int array[],int size)
{
int i=0;
float sum=0;
for(;i<size;i++)
sum+=array[i];
return sum;
}

output?

Answer Posted / lusi dash

55

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the benefit of using const for declaring constants?

999


Did c have any year 2000 problems?

1086


Compare and contrast compilers from interpreters.

1097


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

10176


write a program to rearrange the array such way that all even elements should come first and next come odd

2254


What is a pointer and how it is initialized?

1114


What is meant by initialization and how we initialize a variable?

1024


Write a program to use switch statement.

1099


what type of questions arrive in interview over c programming?

2003


please explain every phase in the "SDLC" in the dotnet.

2579


What are the types of type qualifiers in c?

1061


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1071


How do you convert strings to numbers in C?

1195


Is c is a low level language?

1101


What are the __date__ and __time__ preprocessor commands?

1072