This is a vary simple program in c++ i shared below. i hope you can easily understand the concept of pointer that what is a pointer? what does pointer ? and how to use pointer ? See the example given below for more detail please ask question in comments.
#include<iostream>// pre-processor directive iostream.h is a header fileusing namespace std; // we are using standered keyword and expre…