void display_list(node* head)

{

while (head != NULL)

{

printf("%d ->", head->data);

}

}


링크드리스트 출력 함수인데 반복문이 안멈추고

처음 데이터만 나오나요?