My C++ Quiz

The ultimate place to learn C++!

Question #7: Which of the following variables can be accessed in foo's function try block handler?

void foo(int x) try
{
    int y = 2;
    throw 1;
}
catch(int e)
{
}

int main(int argc, char** argv)
{
    foo(3);
    return 0;
}