Implement Stack in C Array

Check out all articles in Technical Article Structure on Medium

General Introduction

Implementation

  1. createStack — this function will be used to allocate memory and initialize stack, where stack is a custom class
  2. isEmpty — this function returns TRUE if the stack is empty
  3. isFull — this function returns TRUE if the stack is full
  4. Push — to add a new item to the top of the stack
  5. Pop — to retrieve an item from the top, and remove it from the stack
  6. Top — to see the item on the top of the stack

Gist Example

--

--

I enjoy the positive mind flow when writing code to solve a problem. This is my journey to become a software developer, though now working as a product owner

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yu-Ming, CHANG (he/him)

I enjoy the positive mind flow when writing code to solve a problem. This is my journey to become a software developer, though now working as a product owner