How to get the size of stack?šŸ¤” | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
+ 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