Give 2 examples of exceptional code pathes.
- if (e.Title() == “CEO” || e.Salary() > 10000)operator ==() might throw.
- cout << e.First() << “ “ << e.Last() << “ is overpaid” << endl;
As per C++ standard, any of the five calls to << operator might throw.
0 Comments
Please add nice comments or answer ....