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