write a function that computes the summation of two array(one dimensional array ) (the same size ) and store the result in the first array ?
function.
void main(int a[ ] ,int b[ ] ); (
#include<iostream.h>
void sum(int a[],int b[]){
for(int i=0;i<10;i++)
a+=b;
}
void main(int a[10],int b[10]){
for (int j=0;j<10;j++){
cin>>a[j];}
for(int k=0;k<10;k++){
cin>>k[10];}
sum(a)
for(int l=0;l<10;l++)
cout<<a[k];
}