AnotherTemp::MyFunction() will attempt to run the Temp destructor twice... once for t and once for *tt. However, your Temp destructor is wrong, because value is initialized from a constant string in the constructor and you will corrupt the heap attempting to delete value.
what i was asking was will the char* value inside Temp class would be deleted when i do delete tt.
"However, your Temp destructor is wrong, because value is initialized from a constant string in the constructor and you will corrupt the heap attempting to delete value."
ok..so in such a case delete value; statement inside the Destructor is not required.