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 / deepa

ther wud be no amswer as the for loop is executed infinitly

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pass by value in c?

1067


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2750


In C programming, what command or code can be used to determine if a number of odd or even?

1053


What is a constant?

1057


What is nested structure in c?

1060


Can you pass an entire structure to functions?

1117


Why are all header files not declared in every c program?

1103


plz let me know how to become a telecom protocol tester. thank you.

2189


How do shell structures work?

1110


What is array in c with example?

1248


Can you please explain the difference between syntax vs logical error?

1181


How can you tell whether two strings are the same?

1250


Does * p ++ increment p or what it points to?

1117


Explain the advantages and disadvantages of macros.

1096


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2258