How to deallocate the object referred with value in the following program ?
value
int main() { double& value = *(new double(1.0)); }
delete value;
delete &value;
delete *value;
Not possible, we should never allocate a variable like that.