What is the output of the following program?
#include#include #include “myStack.h”using namespace std;void mystery(stackType & s, stackType & t);int main( ) iint list [ ] = {5, 10, 15, 20, 25};stackType s1;stackType s2;for (int i = 0; i<5; i++) s1.push(list[i]);mystery(s1, s2);while (!s2.isEmptyStack ( )){cout ≪ s2.top ( ) ≪ “ ”;s2.pop ( );}cout ≪ end1;}void mystery(stackType & s, stackType & t) {while (!s.isEmptyStack ( ))}t.push(2 * s.top ( ));s.pop ( ) ;}}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.