[Solved]4 Points Consider Definition Following Function Template Template Type Choice Type X Type Q37138476
I need help with this question Language is c++.

4 points) Consider the definition the following function template template <class Type> Type choice (Type x, Type y, Type z) if ( ((x <= y) && (y <=z)) II ( (x <= z) && (z <= y)) ) else if ( ((y <=x) && (x <= z)) II ((y <=z) && (z <=x) else return x; return y; return 2; (a) What is the expected output of the following statement? cout << choice (7, 4, -5) << endl; (b) What is the expected output of the following statements string strl “Orange” string str2″Cherry” string str3″Watermelon”; cout << choice (strl, str2, str3) << endl; Show transcribed image text 4 points) Consider the definition the following function template template Type choice (Type x, Type y, Type z) if ( ((x
Expert Answer
Answer to 4 points) Consider the definition the following function template template Type choice (Type x, Type y, Type z) if ( ((x… . . .
OR

