/* * struct.c */ #include #include struct point { int x, y; char name[1234]; }; int main(int argc, char *argv[]) { struct point p; struct point *pptr; pptr = malloc(sizeof(struct point)); p.x = 12; p.y = 19; (*pptr).x = 142; (*pptr).y = 196; pptr->x = 142; pptr->y = 196; free(pptr); }