data structure with c 2

Rewrite the following function so that it can operate on arrays of any data type, not just integers. You may

assume that all operations and comparisons are defined for all data types that we would pass into this

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now

function:

int cloneArrayReturnMax( int * arr1 , int size1, int * arr2 , int size2) {

int end = size1;

if (end > size2)

end = size2;

for (int i = 0; i < end; i++)

arr1 [i] = arr2 [i];

int max = arr1 [size1 – 1];

for (int i = size1- 2; i >= 0; i — )

if (max < arr1 [i])

max =arr1 [i];

return max;

}

 
Looking for a similar assignment? Our writers will offer you original work free from plagiarism. We follow the assignment instructions to the letter and always deliver on time. Be assured of a quality paper that will raise your grade. Order now and Get a 15% Discount! Use Coupon Code "Newclient"