Question 11
#include <iostream>
using namespace std;
int fun() throw (int)
{
throw 10;
}
int main() {
fun();
return 0;
}
Question 12
#include <iostream>
using namespace std;
// Ideally it should have been \"int fun() (int)\"
int fun()
{
throw 10;
}
int main()
{
try
{
fun();
}
catch (int )
{
cout << \"Caught\";
}
return 0;
}
There are 12 questions to complete.