#include #include struct Wrapper { int value; }; int main(void) { /* WARNING: * I'm breaking some rules about malloc here. Will discuss soon. */ struct Wrapper *x = malloc(sizeof(struct Wrapper)); struct Wrapper *y = malloc(sizeof(struct Wrapper)); (*x).value = 23; y = x; printf("%i %i\n", (*x).value, (*y).value); (*y).value = 371; printf("%i %i\n", (*x).value, (*y).value); return 0; }