Assume that stack is the class described in this section with stacktype set to int and stack_capacity or mycapacity set to 5. give the value of mytop and the contents of the array referred to by myarray in the stack s after the code segment is executed, or indicate why an error occurs.
1.
stack s;
s.push(10)
s.push(9)
s.push(8)
while (! s.
s.pop();

Solved
Show answers

Ask an AI advisor a question