Use Basic C Q4 15 points Modify the following program as fol

Use Basic C

Q4. (15 points) Modify the following program as follows. The function add should receive as arguments just pointers (except size). Then do any required changes according to this modification Submit a repl.it url link for your program #include void add (int aI , const int br,const int c[], int size); int main(void)A int a[5].: const int b[]-1,2,3,4,5; const int c[]-(1,1,1,1,1); add (a,b,c,5); for (int i-0;i

Solution

void add(int *a,int *b,int *c,int size){

for(int i=0;i<size;i++){

*(a+i) = *(b+i)=*(c+i);

}


Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site