Implement Queue in C Array

Check out all articles in Technical Article Structure on Medium

Introduction

Implementation

  1. createQueue — to allocate memory and initialize your custom class, Queue
  2. isEmpty — to return TRUE if the Queue is empty
  3. isFull — to return TRUE if the Queue is full
  4. Enqueue — to add a new item to the rear of the queue
  5. Dequeue — to retrieve an item from the rear of the queue, and remove it from queue
  6. Front — to simply retrieve an item from the top of the queue, the most recent added one
  7. Rear — to simple retrieve an item from the rear of the queue, the first item added to the queue

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