An open API service indexing awesome lists of open source software.

https://github.com/patilyashh/reverse-linked-list

Day 14 of 75 Days C programing challenge || #14 ||
https://github.com/patilyashh/reverse-linked-list

Last synced: about 2 months ago
JSON representation

Day 14 of 75 Days C programing challenge || #14 ||

Awesome Lists containing this project

README

          

# Linked List Reversal Program

This C program demonstrates how to reverse a linked list using a simple iterative approach.

## Features

- Reverses a linked list in-place.
- Inserts elements at the beginning of the linked list.
- Prints the original and reversed linked lists.

## How to Use

1. Ensure you have a C compiler installed on your system.
2. Download the `linked_list_reverse.c` file.
3. Compile the program using the following command:
```
gcc linked_list_reverse.c -o linked_list_reverse
```
4. Run the compiled program:
```
./linked_list_reverse
```
## Sample Output

Original Linked List: 6 5 4 3

Reversed Linked List: 3 4 5 6

## License

This program is licensed under the MIT License. See the [LICENSE](https://github.com/PATILYASHH/LICENES/) file for details.