Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 3 (Q.No. 2)
2.
When the function int someFunction(char c) throw( ) is executed, _____
it can throw anything
it may throw an integer
it may throw a character
it may not throw anything
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
4 comments Page 1 of 1.

Vishal said:   6 years ago
Correct, Thanks @Prathama.

Saeed said:   7 years ago
According to me, option C: it may throw a character is the correct answer.

Prathama said:   1 decade ago
As "throw()" throw point does not contain anything
therfore, D is an correct ans
(1)

Jos Collin said:   1 decade ago
I think the option A is correct, as throw without an object is used for rethrowing an exception.

Post your comments here:

Your comments will be displayed after verification.