Copyright Cengage Learning. Powered by Cognero.
25. Given the following function prototype:
double tryMe(double, double);
which of the following statements is valid? Assume that all variables are properly declared.
cout << tryMe(tryMe(double, double), double);
cout << tryMe(tryMe(float, float), float);
26. Given the function prototype:
double testAlpha(int u, char v, double t);
which of the following statements is legal?
cout << testAlpha(5, ‘A’, 2);
cout << testAlpha( int 5, char ‘A’, int 2);
cout << testAlpha(‘5.0’, ‘A’, ‘2.0’);
cout << testAlpha(5.0, “65”, 2.0);
27. Given the function prototype:
float test(int, int, int);
which of the following statements is legal?
cout << test(7, test(14, 23));
cout << test(test(7, 14), 23);