Consider the definition of the following function template:
TemplateType funcExp (Type list [ ], int size){Type x = list[0];Type y = list[size - 1];for (int j = 1; j<(size − 1)/2; j++){if (x list[size − 1 −j])y = list[size − 1 −j];}return x + y;}
Further suppose that you have the following declarations:
int list[10] = { 5, 3, 2, 10, 4, 19, 45, 13, 61, 11};string strList [ ] = {“One”, “Hello”, “Four”, “Three”, “How”, “Six”};What is the output of the following statements?
a.
cout ≪ funcExp(list, 10) ≪ end1;
b.
cout ≪ funcExp(strList, 6) ≪ end1;
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.