A program for queue ADT by using arrays in c plus plus?

1 answer

Answer

1213158

2026-07-22 00:55

+ Follow

Arrays are not suitable for implementing queues because while they are ideal for adding to the end, the are not ideal for extraction from the beginning. For that you need a deque. Regardless, the STL (standard template library) already provides an efficient queue ADT in std::queue.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.