mplementation of stack using any programing language
Answer Posted / 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 |
Post New Answer View All Answers
What are local static variables?
Is c compiled or interpreted?
Explain Function Pointer?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
Explain how do you convert strings to numbers in c?
Why can’t constant values be used to define an array’s initial size?
What is identifier in c?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
What is the use of a semicolon (;) at the end of every program statement?
Write a program to print fibonacci series using recursion?
What are the advantages and disadvantages of c language?
What do you mean by recursion in c?
Which is better malloc or calloc?
Do variables need to be initialized?
Why is main function so important?