CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS DATA STRUCTURE DETAILS
    Question :
    What is the relationship between a queue and its underlying array?
    Category Data Structure Interview Questions
    Rating (0.4) By 1011 users
    Added on 9/13/2009
    Views 1660
    Rate it!
    Answers:

    Data stored in a queue is actually stored in an array. Two indexes, front and end will be used to identify the start and end of the queue.

    When an element is removed front will be incremented by 1. In case it reaches past the last index available it will be reset to 0. Then it will be checked with end. If it is greater than end queue is empty.

    When an element is added end will be incremented by 1. In case it reaches past the last index available it will be reset to 0. After incrementing it will be checked with front. If they are equal queue is full.



    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    What is a queue ?
    View Answer
    What does isEmpty() member method determines?
    View Answer
    What method removes the value from the top of a stack?
    View Answer
    What method is used to place a value onto the top of a stack?
    View Answer
    Run Time Memory Allocation is known as ?
    View Answer
    How do you assign an address to an element of a pointer array ?
    View Answer
    Why do we Use a Multidimensional Array?
    View Answer
    What is significance of ? * ? ?
    View Answer
    What is Data Structure?
    View Answer
    Is Pointer a variable?
    View Answer
    How many parts are there in a declaration statement?
    View Answer
    How memory is reserved using a declaration statement ?
    View Answer
    What is impact of signed numbers on the memory?
    View Answer
    What is precision?
    View Answer
    What is the difference between NULL AND VOID pointer?
    View Answer
    What is the difference between ARRAY and STACK?
    View Answer
    Tell how to check whether a linked list is circular ?
    View Answer
    Whether Linked List is linear or Non-linear data structure?
    View Answer
    What is the data structures used to perform recursion?
    View Answer
    If you are using C language to implement the heterogeneous linked list, what pointer type will you use?
    View Answer


    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Data Structure Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 0.03125 Seconds