#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
What is pass by value in c?
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.
In C programming, what command or code can be used to determine if a number of odd or even?
What is a constant?
What is nested structure in c?
Can you pass an entire structure to functions?
Why are all header files not declared in every c program?
plz let me know how to become a telecom protocol tester. thank you.
How do shell structures work?
What is array in c with example?
Can you please explain the difference between syntax vs logical error?
How can you tell whether two strings are the same?
Does * p ++ increment p or what it points to?
Explain the advantages and disadvantages of macros.
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.