#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
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
What are header files in c programming?
Are local variables initialized to zero by default in c?
What is a class c rental property?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
How #define works?
Explain the concept and use of type void.
What is the advantage of a random access file?
What is a function simple definition?
How does placing some code lines between the comment symbol help in debugging the code?
Explain what math functions are available for integers? For floating point?
What is pointer to pointer in c with example?
Why double pointer is used in c?
Difference between exit() and _exit() function?
Why main is not a keyword in c?