Jump to

v07-l1-findOutput

(random out of 13)

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;
    }
}

???