#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
When c language was developed?
Why is C language being considered a middle level language?
Write a program to implement queue.
Why do we use int main?
How do you print only part of a string?
Who developed c language?
what is the format specifier for printing a pointer value?
Explain Basic concepts of C language?
Explain the meaning of keyword 'extern' in a function declaration.
Place the #include statement must be written in the program?
What is the difference between a free-standing and a hosted environment?
What does int main () mean?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
Is there any possibility to create customized header file with c programming language?
What is character constants?