
Linked List (링크드 리스트) fixed-memory 의 한계를 없앰 삽입, 삭제가 빠름 메모리의 비효율성 해결 순회가 번거로움 링크드 리스트 C언어로 구현하기 #include #include typedef struct Node { int element; struct Node* next; } Node; 링크드 리스트의 구조체는 위와 같다. element는 리스트의 요소, next는 다음 리스트를 가리키는 값이다. 링크드 리스트 Traverse(순회) 함수 구현하기 // Traverse 순회 void traverse(Node* head) { Node* cur_node = head; while (cur_node != NULL) { printf("%d ", cur_node->element); cur_..