What do you mean by stack program?
Get me an example stack program?
Answer Posted / manoj singh
stac program is called whose as provide the lifo mens last input first output .when we putdown the value in node thats called pop and flow out the value thats called push.
char stack[10]
int top=-1;
void push(char d)
{
if(to==9)
printf("stack is full");
else
stack[++top]=d;
}
char pop()
{
if(top==-1)
return('\0')
else
return(stack[top--]);
}
//stack is create both performance pop and push.
Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
Which is better struts or spring?
What is the difference between abstraction and polymorphism?
What is data binding in oops?
What is object in oop with example?
What is overloading in oops?
What is abstraction and encapsulation?
What is encapsulation with real life example?
Are polymorphisms mutations?
Write a program to reverse a string using recursive function?
Explain virtual inheritance?
What is oops concept with example?
What is super in oop?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
can inline function declare in private part of class?
Why is polymorphism used?