Jump to

v07-l2-findOutput2

(random out of 5)

What is the output of the following code :

#include <string>
#include <iostream>
using std::cout, std::endl;

int main() {
    try {
        throw "AAAAAAAAAAH";
    } 
    catch (string&) {
        cout << "Catching a string" << endl;
    }
    catch (char*) {
        cout << "Catching a char*" << endl;
    }
    catch (const char*) {
        cout << "Catching a const char*" << endl;
    }
}

???