Home » C++ Programming » Functions

What will be the output of the following program? #include double CuriousTabFunction(double, double, double = 0, double = 0, double = 0); int main() { double d = 2.3; cout<< CuriousTabFunction(d, 7) << " "; cout<< CuriousTabFunction(d, 7, 6) << endl; return 0; } double CuriousTabFunction(double x, double p, double q, double r, double s) { return p +(q +(r + s * x)* x) * x; }

Correct Answer: 7 20.8

← Previous Question Next Question→

More Questions from Functions

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion