Is empty stack c++?



Is empty stack c++?..

Answer / Naveen Rana

Yes, a stack can be empty in C++. The STL (Standard Template Library) provides the 'std::stack' container, which can be initialized or checked for emptiness.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is protected inheritance?

1 Answers  


what Is DCS ? what i will get benefit when i did?

1 Answers  


Define a constructor - what it is and how it might be called (2 methods)?

1 Answers  


In which memory a class gets stored(in heap /in stack)? And why??

2 Answers  


When can I use a forward declaration?

1 Answers  


What is the Difference between "C structure" and "C++ structure"?

12 Answers  


What is function declaration in c++ with example?

1 Answers  


How do you link a C++ program to C functions?

4 Answers  


What do you mean by global variables?

1 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers   CTS,


What is diamond problem in c++?

1 Answers  


What is the most common mistake on c++ and oo projects?

1 Answers  


Categories