Answer the question
In order to leave comments, you need to log in
What does sequential memory mean?
came across this statement
In addition, both the stack and the queue use one sequential memory area.
Answer the question
In order to leave comments, you need to log in
One consecutive piece of memory - this means "successive memory addresses". These will be a simple and dynamic array, a traditional device string, and all the memory structures that are based on them. Including the simplest stack and ring queue.
What is it for?
1. It's closer to the hardware: the code is simpler, the cache works better, which means it's faster.
2. Some functions, especially non-template ones, require sequential memory cells for their work.
Quite right, it will. Hence the famous "stack overflow" error - it is not clear how to set up a call stack of infinite capacity and a relatively simple device. Therefore, if very deep recursion is needed (for example, when bypassing networks), the call stack has to be emulated.
came across this statement
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question