Skip to content

About

I created this singly linked list project to practice basic C programming. It helped me learn how to use pointers, manage memory, and build simple data structures from scratch.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

C Singly Linked List

This is a simple command-line program written in C that implements a singly linked list. I made this as a practice project to learn about pointers, dynamic memory, and basic data structure operations in C.

Features

  • Interactive text-based menu to manage the linked list.
  • Add elements to the end (Append), beginning (Prepend), or at a specific position (Insert).
  • View the entire list (List) or view an element at a specific index (Print).
  • Get the total number of elements (Size).
  • Delete specific values from the list, with the option to choose how many occurrences to remove (Delete).
  • Automatically frees allocated memory upon exiting to prevent memory leaks.

Getting Started

Prerequisites

You need a standard C compiler (like gcc or clang) installed on your computer.

Compilation

Open your terminal and compile the code using this command:

gcc -Wall -o linkedlist main.c

About

I created this singly linked list project to practice basic C programming. It helped me learn how to use pointers, manage memory, and build simple data structures from scratch.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages