What is the output of the following code ?
#include <string>
#include <iostream>
using std::cout, std::endl;
int main() {
try {
throw 1;
}
catch (size_t) {
cout << "Catching a size_t" << endl;
}
catch (int) {
cout << "Catching an int" << endl;
}
catch (...) {
cout << "Catching an unknown type" << endl;
}
}