![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
有如下程序:#include <iostream.h>using namespace std;class Demo{public:Demo(){ cout<<"defau
有如下程序: #include <iostream.h> using namespace std; class Demo { public: Demo(){ cout<<"defautt constmctor\n"; } Demo(const Demo &x){cont<<"copy constmctor\n";} }; Demo userCode (Demo b){Demo c(b);return c;} int main() { Demo a,d; cout<<"calling userCode()\n"; d=userCode(a); return 0; } 执行上面程序的过程中,构造函数Demo()和Demo(const Demo&x)被调用的次数分别是()。
A.1和1
B.1和2
C.2和3
D.2和4
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)