answersLogoWhite

0

What is C implementation of queues?

Updated: 8/16/2019
User Avatar

Arockiahulk

Lvl 1
16y ago

Best Answer

It depends on the type of data, but generally you would just implement a data array and have a static pointer to the "next" element of the array and a static pointer to the "last" element of the array. New data would be added to the location of the "last" pointer. Data would be processed from the "next" pointer. Pointers would be incremented to the appropriate element whenever reading or writing and special attention given to any time you come to the end of the array.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is C implementation of queues?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Implementation of queue?

Queues are commonly implemented for abstract routines and data access structures. In languages using object-orientation, they may be featured as classes. Some methods for implementation include circular buffers and linked tests.


In which language cursor implementation is used?

c is only language that use cursor based implementation


What are the advantages of building ISR queues?

ISR queues


What is the C plus plus coding for implementation of queue using circular linked list?

The implementation is the same as that for a singly-linked list, the only difference being that rather than maintaining separate pointers to both the head and tail, you only need to maintain a pointer to the tail, since the tail's next node is always the head, which will be itself if there is only one node. As with all queues, insertions occur at the tail and extractions occur at the head.


Why c plus plus is platform dependent?

C++ is not platform dependent. The implementation is, but not the language.


What has the author C C G Handscomb written?

C. C. G. Handscomb has written: 'The implementation of a T.R.I.S.T. project'


What is the plural of queue?

Queues is the plural of queue.


What is the plural form of queue?

The plural form of "queue" is "queues."


When does c plus plus use generic function implicitly?

C++ uses the generic function implicitly whenever the base class implementation (the generic method) is also the most-derived implementation.


What is property of queues?

When you are registering your property and its in the queue for registration process, this is called property of queues..


Is there a way to program speech recognition in c plus plus with the express edition not the visual studio version?

The express edition's C++ implementation is no different to the visual studio implementation. It is the exact same language.


How do you change data types range in c?

You can not change the range of a data type. It is a function of the implementation and is dependent on the word size of the implementation's computer hardware.