1.

#include <iostream>using namespace std;int i;class LFC{public:    ~LFC()    {        i=10;    }};int foo(){    i=3;    LFC ob;    return i;}  int main(){    cout << foo() << endl;    return 0;}
19.If the copy constructor receives its arguments by value, the copy constructor would

A. Call one-argument constructor of the class
B. Work without any problem
C. Call itself recursively
D. Call zero-argument constructor
Answer» D. Call zero-argument constructor


Discussion

No Comment Found

Related MCQs