18th Apr 2019, 7:33 AM
[ ]
[     ] - avatar
4 odpowiedzi
+ 1
You enter TRY you print 1 If x < 0 (IT IS) Throw x Immediately your code goes to catch You catch x You print 3
18th Apr 2019, 8:05 AM
Elva
Elva - avatar
+ 1
Nope, nothing between throw and catch is executed
18th Apr 2019, 8:14 AM
Elva
Elva - avatar
+ 1
Ok thanks Elva
18th Apr 2019, 8:15 AM
[ ]
[     ] - avatar
0
Elva after printing 3, won't it comback to the line below throw i.e. cout<<2 or maybe its property of throw that it wont return to the same function???
18th Apr 2019, 8:14 AM
[ ]
[     ] - avatar