91.1k views
3 votes
Which of the following function declaration correctly specifies that two types of exceptions are thrown? a. void fl(exception a, exception b); b. void fl( exception (a,b); c. void fl(throw a, throw b; d. void fl(thaw (a,b);

1 Answer

4 votes

Answer:

The correct answer is a. void fl(exception a, exception b);

Step-by-step explanation:

Option a specifies the correct function declaration that correctly specifies that two types of exceptions are thrown. The function declaration states "void fl(exception a, exception b)", indicating that the function "fl" can throw two exceptions of type "a" and "b" respectively.

User JustTheHighlights
by
7.5k points