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