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
What is polymorphism programming?
write a program that takes input in digits and display the result in words from 1 to 1000
What does it mean when someone says I oop?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Why is oop better than procedural?
What are objects in oop?
What is abstraction with example?
What is and I oop mean?
What are oops functions?
Prepare me a program for the animation of train
What do you mean by Encapsulation?
What is encapsulation in oops?
What is the problem with multiple inheritance?
What is polymorphism and why is it important?
How do you use inheritance in unity?