From 875d4c115cd68a218dcafc5946e978d54d63593b Mon Sep 17 00:00:00 2001 From: rgolu <32810952+rgolu@users.noreply.github.com> Date: Tue, 16 Oct 2018 10:08:19 +0530 Subject: [PATCH] "added a subtopic on uses of stacks" (#19287) * "added a subtopic on uses of stacks" * "made corrections to my pr as told by the collaborator" --- client/src/pages/guide/english/cplusplus/stack/index.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/src/pages/guide/english/cplusplus/stack/index.md b/client/src/pages/guide/english/cplusplus/stack/index.md index 1f550ecc07..e3cd0cac6e 100644 --- a/client/src/pages/guide/english/cplusplus/stack/index.md +++ b/client/src/pages/guide/english/cplusplus/stack/index.md @@ -163,3 +163,12 @@ int main () 2 1 Out of loop + +## Uses of Stack + +1. Expression Evaluation and Conversion. + stacks are used to evaluate and convert expressions like prefx, postfix and infix expression. +2. In Recursive functions to keep information about the active functions or subroutines. +3. In Backtracking, as in DFS algorithm. +4. Memory management, run-time environment for nested language features. etc +