Name: Anonymous 2012-08-31 23:49
What does it output?
using namespace std;
#include <iostream>
int main() {
try {
void *(*fp)(const int * const);
throw fp;
}
catch(void *(*e)(int *)) {
cout << "A" << endl;
}
catch(void *(*e)(int * const)) {
cout << "B" << endl;
}
catch(void *(*e)(const int *)) {
cout << "C" << endl;
}
catch(void *(*e)(const int * const)) {
cout << "D" << endl;
}
return 0;
}