Write and test the following function void appendint a int


Write and test the following function: void append(int a[], int m, int b[], int n);

The function appends the first n elements of the array b onto the end of the first m elements of the array a. It assumes that a has room for at least m + n elements. For exam- ple, if a is {22,33,44,55,66,77,88,99} and b is {20,30,40,50,60,70,80,90} then the call append(a,5,b,3) would transform a into {22,33,44,55,66,20,30,40}. Note that b is left unchanged and only n elements of a are changed.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write and test the following function void appendint a int
Reference No:- TGS01186605

Now Priced at $10 (50% Discount)

Recommended (93%)

Rated (4.5/5)