Skip to content

Various Programs demonstrating the programming logic of Stacks using Pointers

Notifications You must be signed in to change notification settings

AndrewColbeck/C_Stacks

Repository files navigation

Stacks

Various Programs demonstrating the programming logic of Stacks using Pointers.

Stack_merger.c

This Program prompts a user to enter two lists of numeral values which are stored in separate stacks. The program will then order the values, and merge the lists together using C's malloc function.


Screenshot of stack_merger.c output

Stack_palindrome_checker.c

Program which determines if a user entered word is a palindrome, by pushing the characters into a stack and analysing them.

Screenshot of Stack_palindrome_checker.c output

Stack_recursive_print.c

This Program will iterate through a stack until reaching the final link, before recursively printing each value until all values are popped off the stack.

Screenshot of Stack_recursive_print.c output

Stack_recursive_search.c

Similar to recursive_print.c, this Program will iterate through a Stack, and return the first value matching the user's search input.

Screenshot of Stack_recursive_search.c output

Stack_reverser.c

Pushes a user entered sentence of characters onto a stack, before pushing them out (reversing the order).

Screenshot of Stack_reverser.c output

Instructions:

See Install, Compile and Run instructions here.



Andrew Colbeck © 2018
B.Sc. Computer Science, B.A. Audio Engineering (Hons)
follow:

About

Various Programs demonstrating the programming logic of Stacks using Pointers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages