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
how to build a exercise findig min number of e heap with list imlemented?
Why is %d used in c?
What is a pointer variable in c language?
What is the scope of local variable in c?
What is c mainly used for?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What is atoi and atof in c?
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
Find MAXIMUM of three distinct integers using a single C statement
Tell me the use of bit field in c language?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What is const volatile variable in c?
Explain enumerated types in c language?
What is the stack in c?
Stimulate calculator using Switch-case-default statement for two numbers