mplementation of stack using any programing language



mplementation of stack using any programing language..

Answer / aravind

1. stack as an array or linked list (two ways)
2.define array.
3.perform push operation by taking one more array.
4.perform pop and store the popped items
5.display function to print the popped values
6.make sure you reach LIFO

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More C Interview Questions

What is bss in c?

0 Answers  


Which are low level languages?

0 Answers  


identify the in correct expression a.a=b=3=4; b.a=b=c=d=0; float a=int b=3.5; d.int a; float b; a=b=3.5;

8 Answers   TCS,


Explain how do I determine whether a character is numeric, alphabetic, and so on?

0 Answers  


Write any data structure program (stack implementation)

1 Answers   HTC,






difference between ordinary variable and pointer in C?

2 Answers  


How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?

2 Answers   CMC, Wipro,


what is the coding of display the factorial of a number using array and function?

1 Answers  


When should structures be passed by values or by references?

0 Answers   Adobe,


Define function ?Explain about arguments?

2 Answers   Geometric Software, Infosys,


Which of the Following will define a type NODE that is a node in a Linked list? A)struct node {NODE*next;int x;};type def struct node NODE; B)typedef struct NODE {struct NODE *next;int x;}; C)typedef struct NODE {NODE *next;int x;}; D)typedef struct {NODE *next;int x;}NODE;

5 Answers   Accenture, TCS,


What are preprocessor directives in c?

0 Answers  


Categories