Examlex
Given the following code, what will happen if the value of denom is 0?
double divide(int numer, int denom)
{
if (denom == 0)
throw "ERROR: Cannot divide by zero.\n";
else
Return static_cast<double>(numer) /denom;
}
Q1: The expression *s->p; indicates that s is
Q7: If an exception is not caught, it
Q8: In C++11, you can use a new
Q19: Which of the following types of iterators
Q20: According to the text, what simple example
Q23: The setprecision manipulator cannot be used to
Q25: When a recursive function directly calls itself,
Q25: If a variable uses more than one
Q32: When using smart pointers to dynamically allocate
Q35: To allow file access in a program,