What happens when you push a new node onto a stack?

Skill/Topic: Stacks using Linked List
A) the new node is placed at the front of the linked list.
B) the new node is placed at the back of the linked list.
C) the new node is placed at the middle of the linked list.
D) No Changes happens

Showing Answers 1 - 13 of 13 Answers

paulson paul c

  • Apr 10th, 2006
 

The node will be added at the end of the linked list.

  Was this answer useful?  Yes

paulson paul c

  • Apr 10th, 2006
 

B) the new node is placed at the back of the linked list.

  Was this answer useful?  Yes

Amit Singh

  • Apr 19th, 2007
 

When you push element in stack, then  stack pointer i.e top is incremented but also check for overflow occurs.


























  Was this answer useful?  Yes

samba.bbs@gmail.com

  • Jun 24th, 2023
 

The new node is placed at the front of the linked list

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions