#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 does the c in ctime mean?
Why #include is used in c language?
What is the difference between typedef struct and struct?
How can I read/write structures from/to data files?
Describe the order of precedence with regards to operators in C.
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
How many main () function we can have in a project?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Is a house a shell structure?
please send me the code for multiplying sparse matrix using c
Which header file is used for clrscr?
Why c is faster than c++?
Explain how can I write functions that take a variable number of arguments?
what is reason of your company position's in india no. 1.