New course! Every coder should learn Generative AI!
Try a free lesson0
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!
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()
+ 1
I see. That's for other experts) thank you š
0
I am NOT talking Stack as a container