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

2. 

When the function int someFunction(char c) throw( ) is executed, _____

[A]. it can throw anything
[B]. it may throw an integer
[C]. it may throw a character
[D]. it may not throw anything

Answer: Option D

Explanation:

No answer description available for this question.

Jos Collin said: (Aug 23, 2011)  
I think the option A is correct, as throw without an object is used for rethrowing an exception.

Prathama said: (Jan 15, 2012)  
As "throw()" throw point does not contain anything
therfore, D is an correct ans

Saeed said: (Jan 13, 2019)  
According to me, option C: it may throw a character is the correct answer.

Vishal said: (Jun 16, 2019)  
Correct, Thanks @Prathama.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.