#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
Which is better malloc or calloc?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
What is a static variable in c?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
Why we use void main in c?
What 'lex' does?
What is the meaning of c in c language?
Which function in C can be used to append a string to another string?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
Write a c program to demonstrate character and string constants?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
What is the meaning of ?
What is mean by data types in c?
What is array of structure in c programming?
Once I have used freopen, how can I get the original stdout (or stdin) back?