What is the output of the following code?stackType stack;in…
What is the output of the following code?stackType stack;int x, y;x = 4;y = 2;stack.push(6);stack.push(x);stack.push(x + 1);y = stack.top();stack.pop();stack.push(x + y);x = stack.top();stack.pop();cout
Read Details