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 :
To learn more about Stack click here:
brainly.com/question/24180808
#SPJ4