아직은 포인터에 대해서 가물가물한 상태입니다. 연결리스트 소스을
보고 있는데 다음과 같은 것이 나옵니다.
#include <stdio.h>
#include <string.h>
struct _node
{
char name[10];
int data;
struct node *next;
};
typedef struct _node node;
typedef node *ptr;
int main()
{
ptr haha;
haha->data = 1;
printf("%d\n", haha->data);
}
위의 소스에서
typedef struct _node node; 는 struct _node 을 줄여서 node 라고