Cpp exception handling

  • + 2 comments

    Can someone explain what is work of what() in exception handling? Also invalid_argument("largest proper divisor is not defined for n=0") is a function? What exactly is it throwing?