Answer Posted / karthikamburu
stack is an abstract data type and data structure based on
the principle of Last In First Out (LIFO). Stacks are used
extensively at every level of a modern computer system. For
example, a modern PC uses stacks at the architecture level,
which are used in the basic design of an operating system
for interrupt handling and operating system function calls.
Among other uses, stacks are used to run a Java Virtual
Machine, and the Java language itself has a class
called "Stack", which can be used by the programmer.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
What is setw manipulator in c++?
Write syntax to define friend functions in C++.
What is a stack? How it can be implemented?
Carry out conversion of one object of user-defined type to another?
Is c++ vector a linked list?
Is c++ still being used?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
What is istream c++?
Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.
Why do we learn c++?
How do you write a function that can reverse a linked-list?
What do you mean by stack unwinding in c++?
Is it possible to write a c++ template to check for a function's existence?
How would perform Pattern Matching in C++?