6. Write a function prototype (do not specify the parameter name) with the speci
ID: 3905406 • Letter: 6
Question
6. Write a function prototype (do not specify the parameter name) with the specification: (1) return a double pointer, (2) the function name is testFunction; (3) the first parameter is double and pass-by-value; (4) the second parameter is double and pass-by-reference; (5) the third parameter is double and pass-by-reference using pointer; (6) the fourth parameter is double, pass-by-reference, and the function is not allowed to modify the parameter, (7) the fifth parameter is an array of type double; (8) the eighth parameter is integer pass-by-value. (2 points each) Answer: nbExplanation / Answer
double* testFunction(double,double&,double*,const double&,double*,int);
const here tells the compiler that value cannot be changed.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.