mplementation of stack using any programing language
Answer / aravind
1. stack as an array or linked list (two ways)
2.define array.
3.perform push operation by taking one more array.
4.perform pop and store the popped items
5.display function to print the popped values
6.make sure you reach LIFO
| Is This Answer Correct ? | 3 Yes | 3 No |
How can I convert a number to a string?
void main() { int a[]={1,2,3,4,5},i; for(i=0;i<5;i++) printf("%d",a++); getch(); }
pascal triangle program
Why can't I perform arithmetic on a void* pointer?
How macro execution is faster than function ?
How many ways are there to swap two numbers without using temporary variable? Give the each logic.
Where in memory are my variables stored?
How do I determine whether a character is numeric, alphabetic, and so on?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
what is the difference between getch() and getchar()?
How can you print HELLO WORLD without using "semicolon"?
Explain the difference between ++u and u++?