x

Choose Country Code

x

Direction

x

Ask a Question

  • Ask a Question
  • Scan a Question
  • Post MCQ
  • Note: File extension must be of jpg, jpeg, png, bmp format and file size must not exceed 5 MB
x

Ask a Question

x

x
x
x
Hire a Tutor

Answers and Solutions

What's Your Question?
Answer
Stack size is 5 Stack has already 5 elements in it. So no more elements can be pushed in it.
Answer

Given

 - stack size is five

  -stack is already having five elements

So if you will try to push the element then you wouldn't be able to push it because stack if already full. \

So it will throw exception that "stack is overflow".

Answer
If stack is filled completely and trying to perform push then it is overflowing so elements are removed and using pop function.
Answer
When size of stack is 5 and stack also have 5 element than of we try to push another element than stack is overflow . And we cant push the element more than 5
Answer

Pushing an element into the stack when five elements are already present in the stack will lead to stack.overflow. This will result into overwriting of the code and loss of unsaved work on the computer.

Answer

Stack is full. It is called stack overflow.

Post Answer and Earn Credit Points

Get 5 credit points for each correct answer. The best one gets 25 in all.

Post Answer