#include <iostream>
using namespace std;
int& modpnt(int*& p)
{
p++;
return p;
}
int main()
{
int a=67;
int *pnt;
pnt=&a;
cout<<"Here pointer points to:"<<(int)pnt<<endl;
cout<<"here pointer points to:"<< modpnt(pnt)<<endl;
}
When i compile this programm it shows me the error that "In function int& modpnt(int*&):error:invalid intialisation of reference of type int& from expression of type int*"