Question: What will be the output of the following program?
#include
double BixFunction(double, double, double = 0, double = 0, double = 0);
int main()
{
double d = 2.3;
cout<< BixFunction(d, 7) << " ";
cout<< BixFunction(d, 7, 6) << endl;
return 0;
}
double BixFunction(double x, double p, double q, double r, double s)
{
return p +(q +(r + s * x)* x) * x;
}
[A].7 20
[B].7 19.8
[C].7 Garbage
[D].7 20.8
Answer: Option D