# include<iostream>
using namespace std;
void sumq ( int a[],int si3e,int * sum){
int i;
for ( i=0;i<si3e;i++)
*sum+=a[i];
}
void main ( int s[3],int w,int e){
int i;
for ( i =0;i<3;i++)
cin>>s[i];
sumq(s,3,&e);
cout<<e;
}
The answer to the question is available in the PDF file https://assignmentexpert.com/https://assignmentexpert.com/homework-answers/programming-answer-35349.pdf
Comments
Leave a comment