1 1 vote Suppose a stack $S$. Which is empty initially consider the following code: int values[] = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19}; for(int i=0; i<10; i++) { S.PUSH = (values[i]); } int n = 25; for (int i=0; i<4; i++) { n+= S.POP(); } for(int i=0; i<2; i++) { n-= S.POP(); } printf("%d",n); The output of the program code is _________ . Data Structures data-structures stack programming ace-test-series + – Shankar Kakde 1.3k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
5 5 votes Ans is 69 Shaik Masthan answered Jun 6, 2018 Shaik Masthan comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes the answer is 69. as value of n=25+19+17+15+13-11-9 rish1602 answered Feb 5, 2021 rish1602 comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes the answer is 69. As the value of n=25+19+17+15+13-11-9 rish1602 answered Feb 5, 2021 rish1602 comment Share Follow 0 reply Please log in or register to add a comment.