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 ||
- Host: GitHub
- URL: https://github.com/patilyashh/reverse-linked-list
- Owner: PATILYASHH
- Created: 2024-02-23T17:47:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-23T18:05:58.000Z (over 2 years ago)
- Last Synced: 2025-01-13T03:33:19.130Z (over 1 year ago)
- Language: C
- Size: 81.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.