typedef [int x, int y] Point2D; Point2D p1, p2; int main() { p1.x + p1.y + p2.x + p2.y; p1.0 + p1.1 + p2.0 + p2.1; // equivalent }