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; } }
3 Answers
+ 4
Try
Throw
Catch
+ 1
try, throw, and catch.
+ 1
Try throw catch