Assume that the pop function, called on lines 4, 5, 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.pop(value);
6 myStack.pop(value);
7 cout << value << endl;
```
a. 0
b. 1
c. 2
d. None of these
a. 0
You might also like to view...
If limited to the output of the show vtp status command, which part of the output could be used to verify if the VTP password matches between two switches?
A) MD5 Hash B) Password C) SHA Hash D) Authentication
Which of the following is an example of a malware prevention control?
A) Real-time firewall detection of suspicious file downloads B) Review and analysis of log files C) User awareness to recognize and report suspicious activity D) Not allowing users to have administrative rights to their workstations