1 votes 1 votes Entries in a stack are "ordered". What is the meaning of this statement? DS data-structures stack + – arya_stark asked Jul 4, 2018 arya_stark 2.9k views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply bhuv commented Jul 4, 2018 reply Follow Share Please give contextual information with your answer. It might mean that values in the stack are like 1,2,3,4, or 4,3,2,1 or 45,46,47.... or in any other order but in a specified order. 0 votes 0 votes arya_stark commented Jul 4, 2018 reply Follow Share Question is basically this : Entries in a stack are "ordered". What is the meaning of this statement? (a) A collection of stacks can be sorted. (b) Stack entries may be compared with the '< ' operation. (c) The entries must be stored in a linked list. (d) There is a first entry, a second entry, and so on. 0 votes 0 votes bhuv commented Jul 4, 2018 reply Follow Share option d is most appropriate among all. 0 votes 0 votes Shaik Masthan commented Jul 4, 2018 reply Follow Share entries are ordered means they are ordered by some factor... ex:- 1,2,3,4,5,6 ===> entries are ordered by < operator 6,5,4,3,2,1 ===> entries are ordered by > operator ab,cae,deab ===> entries are ordered by length. Therefore you should know what is a first entry, a second entry, and so on. option d is seems to be correct 4 votes 4 votes arya_stark commented Jul 4, 2018 reply Follow Share nice explaination!! thanx 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes It means that we push elements into the stack in a sequential order, one entry after the other . Sayan Bose answered Jul 5, 2018 Sayan Bose comment Share Follow See all 0 reply Please log in or register to add a comment.