Given the class definition:


class CreateDestroy
{
public:
CreateDestroy() { cout << "constructor called, "; }
~CreateDestroy() { cout << "destructor called, "; }
};

What will the following program output?

int main()
{
CreateDestroy c1;
CreateDestroy c2;
return 0;
}

a. constructor called, destructor called, constructor called, destructor called,
b. constructor called, destructor called,
c. constructor called, constructor called,
d. constructor called, constructor called, destructor called, destructor called,

d. constructor called, constructor called, destructor called, destructor called,

Computer Science & Information Technology

You might also like to view...

The FRCP is a set of rules that is relevant to which type of investigation?

a. Internal b. Criminal c. Civil d. It affects all of them equally.

Computer Science & Information Technology

Which of the following type of anomaly detection measures the system use of resources to develop a profile of that usage?

a. Infiltration b. Preemptive blocking c. Resource profiling d. Threshold monitoring

Computer Science & Information Technology