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
Why interface is used?
What is polymorphism programming?
#include
Why do we need polymorphism in c#?
Can a destructor be called directly?
Which is not an object oriented programming language?
What is coupling in oops?
What is coupling in oop?
What are objects in oop?
How do you achieve polymorphism?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is persistence in oop?
what is difference between class template and template class?
How many human genes are polymorphic?
what are the different types of qualifier in java?