#include <stdio.h>
void change(int **p);
int main()
{
int numbers[10] = { 5, 10, 15 };
int *pi;
pi = numbers;
printf("the no %d \n",*pi);
change(&pi); //pass address of pointer
printf("the no after change %d",*pi);
}
void change(int **p)
{
*p = *p + 2; //change pi in main
}
To embed this program on your website, copy the following code and paste it into your website's HTML: