✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
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;
}
Which of the following statement is correct?