struct point { int x, y; int color; }; struct point p, *pp; p.x (*pp).x, pp->x