Data Structures Question:
Download Job Interview Questions and Answers PDF
What is the difference between ARRAY and STACK in Data Structures?
Answer:
STACK follows LIFO. Thus the item that is first entered would be the last removed.
In array the items can be entered or removed in any order. Basically each member access is done using index. No strict order is to be followed here to remove a particular element.
In array the items can be entered or removed in any order. Basically each member access is done using index. No strict order is to be followed here to remove a particular element.
Download Data Structures Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell how to check whether a linked list is circular ? | What is the difference between NULL AND VOID pointer in Data Structures? |