answersLogoWhite

0


Best Answer

int top=-1;

int stack[10];

User Avatar

Wiki User

โˆ™ 2012-05-24 19:33:06
This answer is:
User Avatar
Study guides

What must students do with the 10 grid-ins on the math section of the PSAT

What are the two types of questions in the math section of the PSAT

What is the PSAT Selection Index score used to determine

What is the birth name of Ora Carew

โžก๏ธ
See all cards
4.0
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
6 Reviews

Add your answer:

Earn +20 pts
Q: Write a c program to perform stack operation?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a c program to convert binary to decimal using stack?

How do you write a c program to convert decimal no to binary no using stack in c++


Write a program to implement stack in C?

Yes, please do.


'write a simple program for stack operation in c plus plus?

void push(int y) { if(top>stackSize) { cout<<"stack full"<<endl; return; } else { top++; stack[top]=y; } } int pop() { int a; if(top<=0) { cout<<"stack is empty"<<endl; return 0; } else { a=stack[top]; top--; } return(a); }


What is the output of menudriven program for stack operation?

First, you see the menu. The rest depends on what you choose from the menu.


What are the operations of stack?

there are two operations you can do with a STACK one is PUSH operation and the other is POP operation


Write a program to implement stack with pop and push operations?

Yes, you should, especially if it is your homework.


Where does short stack perform?

Short stack mostly perform around Australia because they are an Australian band


Is Recursion operation of the stack?

yes


Write a program to convert stack into queue using c language?

In order to write a program to convert stack into queue using c language you must be able to identify the proper program. Having a special certification in programing will be beneficial as well to make sure you recognize the proper queues for the programs.


Write a c program to sort an unsorted stack?

A stack is implicitly sorted by hierarchical nested order. It does not make sense to sort a stack. Do you mean a list? If so, please ask the question again.


What is stack operation in 8085 microprocessor?

STACK operation in 8085 microprocessor.The stack is a reserved area of the memory in RAM where temporary information may be stored. An 8-bit stack pointer is used to hold the address of the most recent stack entry. This location which has the most recent entry is called as the top of the stack.When the information is written on the stack, the operation is called PUSH. When the information is read from the stack, the operation is called POP. The stack works on the principle of Last in First Out or Fist in Lat Out


What is the difference between stack pointer and program counter?

Program counter stores the address of the next instruction to be executed..Stack pointer stores the address of the last program request in the stack

People also asked