0
I am stuck here please help me🙏 Can an exception be handled only in the current function? Explain.
13 Respuestas
+ 9
Yes, with the exception of any finally blocks, or if there is an exception handler within the function that can catch the type of exception you're throwing.
But
unless you catch it or have a finally block:
try
{
var foo = 42 /0;
}
finally
{ // This will execute after the exception has been thrown
}
0
You need negative or positive value
0
For example - 1 negative
0
Ok
0
But please 10 minuts
0
Sorry I'm in working
0
Int a;
Cin>>a;
If(a>=0) {
Cout<<a<< "negative number" <<endl;
Else
Cout<<a<<"positive number" <<endl;