#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


Please Help Members By Posting Answers For Below Questions

When c language was developed?

644


Why is C language being considered a middle level language?

658


Write a program to implement queue.

668


Why do we use int main?

617


How do you print only part of a string?

618






Who developed c language?

644


what is the format specifier for printing a pointer value?

617


Explain Basic concepts of C language?

651


Explain the meaning of keyword 'extern' in a function declaration.

729


Place the #include statement must be written in the program?

576


What is the difference between a free-standing and a hosted environment?

644


What does int main () mean?

554


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.

1205


Is there any possibility to create customized header file with c programming language?

630


What is character constants?

716