2

单选题 2 /6

如何捕获下面代码中的异常?
class A {
  public:
        A(){}
};
void foo(){
    throw new A;
}

参考答案

catch (A && x)
catch (A * x)
catch (A & x)
以上都是