✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Se consideră clasa număr cu următoarea structură:
class numar {
private:
int num;
public:
numar( ) {num=0;} //(1)
numar(int n) {num=n;} //(2)
numar(numar n) {n=n.num;} //(3)
int val ( ) {return num;}
};
numar *p=new numar;
delete p;
De câte ori este apelat destructorul clasei număr ?