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
Here is a good puzzle: how do you write a program which produces its own source code as output?
Explain the use of function toupper() with and example code?
Why we use conio h in c?
Can you think of a logic behind the game minesweeper.
Write a program to check prime number in c programming?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What is the difference between NULL and NUL?
What does sizeof function do?
What is a static function in c?
What are the valid places to have keyword “break”?
What is uint8 in c?
How many header files are in c?
How important is structure in life?
What is this pointer in c plus plus?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode