C++ Exception Handling
- by user1413793
So I was writing some code and I noticed that apart from syntactical, type, and other compile-time errors, C++ does not throw any other exceptions. So I decided to test this out with a very trivial program:
#include<iostream>
int main() {
std::count<<5/0<<std::endl;
return 1
}
When I compiled it using g++, g++ gave me a…