To avoid the explicit calling of a destructor, the time extent of the local variable can be wrapped in an artificial block {...}:
void time()
{
{
copy c;
// ..insert code that should execute when c is still open..
}
Interview Questions and Answers pdf free download for freshers beginners experienced, Multiple Choice Questions with Answers Practice, Placement Papers