pFind the output of the following program class Sample{public: int *ptr Sampleint i { ptr = new inti } ~Sample { delete ptr } void PrintVal { coutp