Question:You have implemented a queue with a circular array keeping track of the first, the last, and the count (the number of items in the array). Suppose the first is zero, and the last is CAPACITY-1, what can you say about the count? 

A The count must be zero 

B The count must be CAPACITY 

C The count can be zero or CAPACITY, but no other value can occur 

D None of the above 

+ Answer
+ Report
Total Preview: 1026

Copyright © 2024. Powered by Intellect Software Ltd