0

How to add 2 arrays into user defined function

1st Jan 2017, 1:22 PM
Imad Khan
Imad Khan - avatar
4 Answers
+ 2
int * addTwoArray(int * a,int *b,int size) { //array a and b must be of same size int *c=(int)malloc(sizeof(int)*size); for(int i=0;i<size;i++) { c[i]=a[i]+b[i]; } return c; }
1st Jan 2017, 2:11 PM
Ashwaghosh Sadanshiv
Ashwaghosh Sadanshiv - avatar
0
plz do this whole program
1st Jan 2017, 2:31 PM
Imad Khan
Imad Khan - avatar
0
plz do this whole program
1st Jan 2017, 2:31 PM
Imad Khan
Imad Khan - avatar
0
plz do this whole program
1st Jan 2017, 2:31 PM
Imad Khan
Imad Khan - avatar