In the constructor of the array implementation of the stack, top is not set to 0 because:
A. it shouldn’t be set to anything until we start pushing elements
B. that would mean there is one element already in the stack
C. it makes much more sense to set it to 1
D. top is always set to the value of the top element of the stack
B
Computer Science & Information Technology
You might also like to view...
Given the following information:
What is the result of =C1/A7? A) #VALUE! B) #REF! C) #N/A D) #DIV/0!
Computer Science & Information Technology
What multicast protocol is used between clients and routers to let routers know which of their interfaces are connected to a multicast receiver?
a. IGMP b. PIM-DM c. PIM-SM d. SPT switchover
Computer Science & Information Technology