India Languages, asked by akhil52491, 7 months ago

Pushing an element into stack already having five elements and stack size of 5, then stack becomes:

Answers

Answered by mendonsabenita
2

: The stack is filled with 5 elements and pushing one more element causes a stack overflow. This results in overwriting memory, code and loss of unsaved work on the computer.

Answered by dreamrob
0

Pushing an element into a stack already having five elements and stack size of 5, the stack becomes overflow.

  • When we try to push more elements than the size of the stack, then the stack overflows in the program.
  • The stack overflow is an unwanted condition that indicates the use of excess memory than the memory allotted to the stack.
  • Stack overflow can lead to a program crash or termination of the programs.

#SPJ3

Similar questions