KPIT Technologies interview question

CPP Programme on pointer