#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
Can you subtract pointers from each other? Why would you?
With the help of using classes, write a program to add two numbers.
Explain what is the difference between a string and an array?
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
Can we increase size of array in c?
What is a node in c?
What is bubble sort in c?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
What are the disadvantages of external storage class?
What are the application of void data type in c?
What are multibyte characters?
What does c mean in basketball?
Explain what are bus errors, memory faults, and core dumps?
Explain how can type-insensitive macros be created?