#include struct point { int x; int y; }; int main(void) { struct point pt = {100, 200}; struct point *p; /* Structure */ printf("(%d, %d)\n", pt.x, pt.y); pt.x += 10; pt.y += 20; printf("(%d, %d)\n", pt.x, pt.y); /* Pointer to structure */ p = &pt; (*p).x += 10; p->y += 20; printf("(%d, %d)\n", (*p).x, p->y); return 0; }