p->age와 (*p).age는 값은 의미
예)
fscanf (fp, "%s %f %f", sp->name, &sp->height, &sp->weight);fscanf (fp, "%s %f %f", (*sp).name, &(*sp).height, &(*sp).weight);
'기초 > C' 카테고리의 다른 글
return exit (0) | 2011.06.21 |
---|---|
구조체의 함수전달 (0) | 2011.06.21 |
typedef (0) | 2011.06.20 |
const (0) | 2011.06.17 |
memory space (0) | 2011.06.17 |