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
}
```
a. Nothing will happen because there is no catch block.
b. The program will display ERROR: Cannot divide by zero.and then move to the statement following the if/else block.
c. The program will display ERROR: Cannot divide by zero.and then halt.
d. There is no throw point because there is no try block.
e. None of these
c. The program will display ERROR: Cannot divide by zero.and then halt.
You might also like to view...
What is the default extension for WordPad files?
A) .pad B) .doc C) .txt D) .rtf
A linked list contains components, called ______, which are linked to one another.
a) nodes b) arrays c) vectors d) references