Stack can be described as a pointer. Explain.

Answer Posted / kavitha

stack is last in first out property,so lastly pushed
element is poped out first.so when a pointer is pointed it
always points out the head pointer i.e the top element in
the stack.,so stack is also described as pointer.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of binary search over linear search?

815


What are the issues that hamper the efficiency in sorting a file?

757


Does hashset guarantee order?

610


Define static data structures?

689


What is comparable interface?

689






Describe the complexity of Quick Sort

708


What is an array vs list?

631


What is the difference between arraylist and linkedlist?

645


Explain the most efficient method to reverse a linked list?

623


Tell me about the different sorting techniques.

694


What is top in stack?

608


Who invented quicksort?

691


Does arraylist extend list?

619


Briefly explain recursive algorithm 50 how do you search for a target key in a linked list?

730


Is arraylist synchronized?

680