[자료구조] 연결 리스트: 코딩
구조체를 이용하여 연결 리스트를 구현하고 사용해보자 #include <stdio.h> #include <stdlib.h> // 연결 리스트의 기본 단위가 되는 node 구조체를 정의한다. typedef struct node { // node 안에서 정수형 값이 저장되는 변수를 name으로 지정한다. int number; // 다음 node의 주소를 가리키는 포인터를 *next로 지정한다. struct node *next; ...
![[자료구조] 연결 리스트: 코딩](https://cdn.hashnode.com/res/hashnode/image/upload/v1718193847048/4bf62e51-e43f-4b69-9ce5-b6a043abf759.png)
![[자료구조] 연결 리스트: 도입](https://cdn.hashnode.com/res/hashnode/image/upload/v1718186835151/a7bcf695-430e-4063-a97e-7d2c9c8b2f93.png)
![[메모리] 파일 쓰기](https://cdn.hashnode.com/res/hashnode/image/upload/v1711894557571/04fabaec-0e01-4306-bd2a-e043c6a1c91d.png)
![[메모리] 메모리 교환, 스택, 힙](https://cdn.hashnode.com/res/hashnode/image/upload/v1711800659339/a30475ed-a16a-4757-a3d6-e4c923838180.png)
![[메모리] 메모리 할당과 해제](https://cdn.hashnode.com/res/hashnode/image/upload/v1711718975242/7a0a5cbb-0f09-4efb-8535-ff07c1056e46.png)
![[메모리] 문자열 비교](https://cdn.hashnode.com/res/hashnode/image/upload/v1710736277524/18547ac2-a51c-4542-9904-454cf546d05a.png)