c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 6

c++

Fill in the blanks to define a function ''myFunc'', which throws an exception with a value of ''99'', if its parameter is less than 0. void myFunc(int arg) { { if (arg < 0) 99; } (int x) { cout << "error!" << endl; } }

10th Mar 2017, 6:52 AM
Sunita Sharma
3 Answers
+ 4
Try Throw Catch
10th Oct 2017, 2:41 AM
Nagarjun Gowda M R
+ 1
try, throw, and catch.
15th Jan 2020, 10:23 AM
Imanuel Wicaksono
Imanuel Wicaksono - avatar
+ 1
Try throw catch
21st Jul 2022, 4:14 PM
Nguyễn Văn Ninh
Nguyễn Văn Ninh - avatar