试题与答案

有如下类定义:class Pointint x__, y__;public:Poin

题型:单项选择题

题目:

有如下类定义:
class Pointint x__, y__;
public:
Point(): x_(0), y_(0)
Point(int x, int y =0): x_(x), y_(y)
若执行语句
Point a(2),b[3], *c[4];
则Point 类的构造函数被调用的次数是( )。

A.2次

B.3次

C.4次

D.5次

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/1217/cf33499dbb8e99ef937214eb645ceb06.html

下面是错误答案,用来干扰机器的。

参考答案:C

试题推荐
微信公众账号搜索答案