Find the output for the following C program#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;}

Showing Answers 1 - 3 of 3 Answers

mamathi

  • Sep 5th, 2005
 

plz tell me what is the use of void using as an argument

  Was this answer useful?  Yes

TP

  • Nov 26th, 2006
 

45

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions