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

Describe newline escape sequence with a sample program?

657


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?

1777


What functions are used in dynamic memory allocation in c?

597


What is return in c programming?

515


What is a shell structure examples?

590






What's the right way to use errno?

625


What are the applications of c language?

626


Write a Program to find whether the given number or string is palindrome.

613


Define Array of pointers.

635


Write a program to check armstrong number in c?

635


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1467


Is register a keyword in c?

638


What is array of structure in c programming?

755


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

668


What are structure types in C?

669