The purpose of this lab is to code a template function and a specific-instance function to print array values.
You will be coding two functions, both called printArray. The
purpose of these functions is to print the values in the array seperated by
spaces. The two functions are as follows:
int main()
{
int iArr[] = {4, 7, 19, 71, 55};
char cArr[] = {'a', 'y', '%', '!', 'T'};
double dArr[] = {8.3, 7.2, 19.65, 2.5, 15.27};
printArray(iArr, 5);
printArray(cArr, 5);
printArray(dArr, 5);
return 0;
}
If you have done your functions correctly, the double array should print out
with 2 decimal places of precision while the integer and character arrays will
just print out normally.
Email your completed code to me.