I would like to know how the isFull() function works for a Stack and a Queue, but by implementing the Stack as a dynamic array(without a predefined size) and implementing the Queue as a linked list.
Cross213
-5
Posting Whiz in Training
Recommended Answers
Jump to PostIn general, determining if something is full requires you to have a fixed size of storage. Once what you are storing consumes the available storage the container is full.
Check the count of how many things have been inserted into your stack against the size of the internal container of …
Jump to PostThe size of an array (in bytes) is determined by the size of a single item in the array and the number of slots the array has. If you have an array of int that has 4 elements, the size of the array is [TEX](sizeof(int) * 4) = (4 * …
All 8 Replies
L7Sqr
227
Practically a Master Poster
Cross213
-5
Posting Whiz in Training
Fbody
682
Posting Maven
Featured Poster
L7Sqr
227
Practically a Master Poster
Cross213
-5
Posting Whiz in Training
Fbody
682
Posting Maven
Featured Poster
L7Sqr
227
Practically a Master Poster
Cross213
-5
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.