Question: The following function acepts an int argument and returns half of its value as a double: double half(int number) { return number/2.0; } Write a
The following function acepts an int argument and returns half of its value as a double:
double half(int number)
{
return number/2.0;
}
Write a template that will implement this function to accept an argument of any type.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
