c++

Post on 13-Sep-2015

213 views 0 download

description

c++

Transcript of c++

Find the output of the following program class Sample{public: int *ptr; Sample(int i) { ptr = new int(i); } ~Sample() { delete ptr; } void PrintVal() { cout