Interview Questions  

Go Back   Interview Questions > Interview Questions & Answers > Information Technology > Programming Languages > Data Structures

Data Structures Data Structures Interview Questions, Learn by sharing Data Structures Interview Questions asked in various Companies, Get Career advices, Interview Procedures from Data Structures experts, Post asked Data Structures Interview Questions and Answers.

   

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-31-2008, 09:50 AM
Senior Member
 
Join Date: Feb 2008
Posts: 9,095
Default What is queue underflow

What is queue underflow?
Reply With Quote
  #2 (permalink)  
Old 04-25-2008, 03:48 PM
Junior Member
 
Join Date: Apr 2008
Posts: 17
Thumbs up

Initially front = rear = 0. This indicates that the queue is empty. Assume that you have added 3 items to the queue and you have deleted all the 3. Now you have front = rear - another indication that the queue is empty.

Hence queue underflow is an indication that the queue has no elements in it. It is denoted by front = rear.
Reply With Quote
Reply

Tags
data structures, interview questions

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On