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...
All of the following operating systems support P2P networking EXCEPT ________
A) OS X B) Windows C) Linux D) Unix
The share permission ____ permits groups or users to read and execute files, but cannot add or delete files and folders and cannot modify files.
A. reader B. contributor C. co-owner D. administrator
The duty of responding to attacks is to maintain the security integrity of the software throughout its useful lifetime.
Answer the following statement true (T) or false (F)
Develop a business profile for Hudson Kayak Adventures. Create a separate section for eachof the following: HKA’s business activities, organization, resources, customers, and potentialfor Web-based marketing.
What will be an ideal response?