Write the definitions for three function named max. Each receives two parameters, of the same type, and returns the larger of the two values. Define one of these functions to apply to type double, another to type int and a third to type char.

LANGUAGE: C++

CHALLENGE:

Write the definitions for three function named max. Each receives two parameters, of the same type, and returns the larger of the two values. Define one of these functions to apply to type double, another to type int and a third to type char.

SOLUTION:

int Max(int iInput){
static int iHighest=0;
if (iInput>iHighest)
iHighest=iInput;
return iHighest;
}