Ad Code

Give 2 examples of exceptional code pathes.

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.
Reactions

Post a Comment

0 Comments