#include struct View { int *depth; }; int main(void) { int depth = 21; struct View first = {&depth}; struct View second = first; *second.depth = 29; printf("First sees: %d\n", *first.depth); printf("Shared target: %d\n", first.depth == second.depth); return 0; }