what is a stack

Answer Posted / naresh lingampally

Stack is a data structure ,a last in, first out (LIFO)
abstract data type.
A stack can have any abstract data type as an element, but
is characterized by only two fundamental operations: push
and pop. The push operation adds to the top of the list,
hiding any items already on the stack, or initializing the
stack if it is empty. The pop operation removes an item from
the top of the list, and returns this value to the caller. A
pop either reveals previously concealed items, or results in
an empty list.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I avoid the abort, retry, fail messages?

671


What is meant by high-order and low-order bytes?

663


How many main () function we can have in a project?

623


Write a C program to count the number of email on text

1426


What are header files? What are their uses?

648






please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

1545


What are the basic data types associated with c?

824


What is a program flowchart?

612


What is the difference between typedef struct and struct?

606


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

643


Define Spanning-Tree Protocol (STP)

656


code for quick sort?

1628


Why main is used in c?

598


What is the difference between text and binary modes?

654


What is the collection of communication lines and routers called?

620