What method is used to place a value onto the top of a stack?


push() method, Push is the direction that data is being added to the stack. push() member method places a value onto the top of a stack.



Explore posts in the same categories: Data Structure Interview Questions


BOOKMARK THIS : del.icio.us | Digg it | Furl | reddit |


Related Questions :

  • What do you mean by Stack unwinding?
  • It is a process during exception handling when the destructor is called for all local objects in the stack between...
  • What method removes the value from the top of a stack?
  • The pop() member method removes the value from the top of a stack, which is then returned by the pop()...
  • What do you mean by Stack unwinding?
  • It is a process during exception handling when the destructor is called for all local objects between the place where...
  • What is Stack Pointer?
  • Stack pointer is a special purpose 16-bit register in the Microprocessor, which holds the address of the top of the...
  • Which Stack is used in 8085?
  • LIFO (Last In First Out) stack is used in 8085.In this type of Stack the last stored information can be...
  • Which Stack is used in 8085?
  • LIFO (Last In First Out) stack is used in 8085.In this type of Stack the last stored information can be...
  • How does an exception permeate through the code?
  • An unhandled exception moves up the method stack in search of a matching When an exception is thrown from a...
  • Which StacWhich Stack is used in 8086? k is used in 8086?
  • FIFO (First In First Out) stack is used in 8086.In this type of Stack the first stored information is retrieved...
  • How can I handle a destructor that fails?
  • Write a message to a log-file. But do not throw an exception. The C++ rule is that you must never throw...
  • What does isEmpty() member method determines?
  • isEmpty() checks if the stack has at least one element. This method is called by Pop() before retrieving and returning...

    Comment:

    You must be logged in to post a comment.