Respuesta :

The limitation of stack variables is that they cannot be resized. Variables don't need to be de-allocated when using a stack, and memory is allocated in contiguous blocks.

In a particular part of the computer's memory called a stack, functions' temporary variables are kept. Variables in a stack are created, saved, and initialized while the program is running. It is only passing. The memory of the variable is cleared after the calculation automatically. Most of the time, methods, local variables, and reference variables are found in the stack section.

The other Disadvantages of using Stack are :

  • The RAM available in the stack is extremely constrained.
  • Stack overflow can occur more frequently if there are too many objects created on the stack.
  • Access at random is not feasible.
  • Overwriting of variables can result in functions or programs behaving in an undefinable way.
  • The stack will exit the memory region, which could result in an unexpected termination.

To learn more about Stack click here:

brainly.com/question/24180808

#SPJ4