Loading [MathJax]/extensions/mml2jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Engineering LibreTexts

Search

  • Filter Results
  • Location
  • Classification
    • Article type
    • Author
    • Set as Cover Page of Book
    • License
    • Show TOC
    • Transcluded
    • OER program or Publisher
    • Autonumber Section Headings
    • License Version
    • Print CSS
  • Include attachments
Searching in
About 1 results
  • https://eng.libretexts.org/Courses/Delta_College/C_-_Data_Structures/10%3A_Queue_Data_Structure/10.06%3A_Circular_queue
    If it is false then rear=(newly created node) and rear node always contains the address of the front node. Check if (front==rear) if it is true then set front = rear = NULL else move the front forward...If it is false then rear=(newly created node) and rear node always contains the address of the front node. Check if (front==rear) if it is true then set front = rear = NULL else move the front forward in queue, update address of front in rear node and return the element. This is the same as the non-circular EXCEPT that you must update the rear->next value to point to the head when you qRemove(), and set the new rear->next when you qInsert().

Support Center

How can we help?