#include #include typedef struct point { int x, y; } Point, *PointPtr; typedef struct { int x, y; } PointV2, *PointV2Ptr; struct pointv3 { int x, y; }; int main(int argc, char **argv) { Point p1 = {.x = 5, .y = 4}; PointPtr p1_ptr = &p1; printf("x: %d y: %d\n", p1.x, p1.y); p1.x = -5; p1_ptr->y = -4; printf("x: %d y: %d\n",p1.x, p1.y); PointV2 p2 = {.x = 22, .y = 33}; PointV2Ptr p2_ptr = &p2; printf("x: %d y: %d\n",p2.x, p2.y); p2.x = -22; p2_ptr->y = -33; printf("x: %d y: %d\n",p2.x, p2.y); struct pointv3 p3 = {.x = 1, .y = 2}; struct pointv3 *p3_ptr = &p3; printf("x: %d y: %d\n",p3.x, p3.y); p3.x = -1; p3_ptr->y = -2; printf("x: %d y: %d\n",p3.x, p3.y); }