Examlex

Solved

Given the Following Code, What Will Happen If the Value \quad

question 2

Multiple Choice

Given the following code, what will happen if the value of denom is 0?
double divide(int numer, int denom)
{
if (denom == 0)
\quad throw "ERROR: Cannot divide by zero.\n";
else
\quad Return static_cast<double>(numer) /denom;
}


Definitions:

Related Questions