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 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 * …
Jump to PostYou don't need a "fixed" size. You use the language's dynamic allocation tools to create objects "on-the-fly".
At some point you need to have a known size, it doesn't necessarily mean that it's "fixed", whether that's provided by the user or by your code is up to you. You …
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.