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 the difference between a constructor and a destructor?
Why polymorphism is used in oops?
What do you mean by variable?
how to get the oracle certification? send me the answer
Advantage and disadvantage of routing in telecom sector
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is encapsulation in oops?
what are the ways in which a constructors can be called?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What are oops methods?
What are the 5 oop principles?
What is object in oop with example?
What is the highest level of cohesion?
What are the three main types of variables?
Is abstract thinking intelligence?