0

How to get the size of stack?🤔

How can I get the size of the stack in my c/c++ programme? Hope for your answers!

7th Jun 2020, 12:31 AM
Max Charlington
Max Charlington - avatar
4 Antworten
+ 2
Max Charlington size() function is used to return thesize of the stack container or the number of elements in the stackcontainer. Like: my_stack.size()
7th Jun 2020, 1:24 AM
Indira
Indira - avatar
+ 1
I see. That's for other experts) thank you 🙏
7th Jun 2020, 8:53 AM
Max Charlington
Max Charlington - avatar
0
I am NOT talking Stack as a container
7th Jun 2020, 8:50 AM
Max Charlington
Max Charlington - avatar