please answer this c++ question if you know all the questions not just some of them ... thanks
We can use templates in C++ if we want to use for many data types.
1. Replace the line
int cloneArrayReturnMax(int* arr1, int size1, int* arr2, int size2) {
with
template <typename T>
T cloneArrayReturnMax(T* arr1, int size1, T* arr2, int size2)
{
2. Replace the line
int max = arr1[ size1 - 1 ]
with
T max = arr1[ size1 - 1 ]
please answer this c++ question if you know all the questions not just some of them ... thanks Problem 4: Rewrite the f...