#include <stdio.h>
int main()
{
int *ptr1, *ptr2, i = 10, j = 20;
ptr1 = &i;
*ptr1 = 15;
ptr2 = &j;
*ptr2 = 5;
ptr2 = ptr1;
*ptr2 = 25;
*ptr2 += *ptr1;
printf("Val = %d\n", j);
return 0;
}
References: C From Theory