#include <stdio.h>
typedef struct _node{
int data;
struct _node* next;
}node;
node* make_node(){
node* a = (node*)malloc(sizeof(node));
a->data=10;
a->next=NULL;
return a;
}
void add_last(node* head, int data){
}
int main()
{
//LIST 생성
node* head = NULL;
node* tail = NULL;
//첫 노드 추가 (함수로)
node* a = make_node();
head=a;
tail=a;
// 두번째 노드 추가 (함수로)
node* b = make_node();
tail->next=b;
tail=b;
// 리스트 탐색 (조회)
node* cur=head;
while(cur!=NULL){
printf("%d\n",cur->data);
cur=cur->next;
}
}