Assume that the pop function, called on lines 4 and 6, stores the number popped from the stack in the value variable. What will the statement on line 7 display?
Given the following code, assume the myStack object is a stack that can hold integers and that value is an int variable.
```
1 myStack.push(0);
2 myStack.push(1);
3 myStack.push(2);
4 myStack.pop(value);
5 myStack.push(3);
6 myStack.pop(value);
7 cout << value << endl;
```
a. 0
b. 1
c. 2
d. 3
e. None of these
d. 3
You might also like to view...
How would you instruct a DNS server to respond only to queries from the 137.44.* IP range?
What will be an ideal response?
?Which of the following should be done if a graphic jumps from one location to another as you drag it and if you cannot position it exactly where you want it to be?
A. ?Press and hold the Ctrl key as you drag the graphic. B. ?Press and hold the Alt key as you drag the graphic. C. ?Press the Tab key after selecting the graphic. D. ?Press the Esc key after selecting the graphic.