A simple C program demonstrating the implementation of a linked list with user data.
This C program showcases the implementation of a linked list, where each node contains user data. The program demonstrates the creation, insertion, printing, and freeing of the linked list.
- Dynamic creation of user structures
- Insertion of user structures into a linked list
- Printing the contents of the linked list
- Proper memory deallocation to prevent memory leaks
Ensure you have the following installed on your system:
- GCC (GNU Compiler Collection)
- Clone the repository:
$ git clone https://github.com/your-username/linked-list-project.git $ cd linked-list-project
- Compile the code:
$ gcc -o prog *.c
- Run the executable:
$ ./prog