0

Most of the programs that I saw produced the results in a linear manner , like displaying a normal one-dimensional array. But here I have a circular queue, and the elements in it must be displayed LIKE a circular queue.

8
  • Welcome to Stack Overflow. Please read the About page soon and also visit the links describing How to Ask a Question and How to create a Minimal, Complete, and Verifiable example. Providing the necessary details, including your code, compiler warnings and associated errors, if any, will allow everyone here to help you with your question. Commented Oct 28, 2019 at 3:09
  • Show code, please. Commented Oct 28, 2019 at 3:11
  • A circular queue generally uses a fixed memory buffer in a circular manner to maintain a linear data list without requiring moving elements or using dynamic memory allocation to accommodate entries entries being added or removed from its ends. Displaying its contents at any point in time from one end to the other would look like a normal one dimensional queue. It sounds like you are dealing with something else, but I don't understand what it is or what you are expecting. Could you explain more? It might be interesting. Commented Oct 28, 2019 at 4:31
  • What is a circular display manner, exactly? Do you want to see a circle on your screen, and the elements displayed all around the circle? Commented Oct 28, 2019 at 11:23
  • Alright, generally we display an array like this - for(i=0; i<size; i++) printf("%d ", Array[i]); This would represent an array as a LINEAR data structure, which fits perfectly with the term 'Linear Queue'. But on the other hand, I'm expecting a block of code, that can display these array elements in a 'Circular' alignment, i.e, just like user253751 said. Commented Oct 29, 2019 at 14:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.