Assume that the dequeue function, called on lines 4 and 6, stores the number removed from the queue in the value variable. What will the statement on line 7 display?

Given the following code, assume the myQueue object is a queue that can hold integers and that value is an int variable.
```
1 myQueue.enqueue(0);
2 myQueue.enqueue(1);
3 myQueue.enqueue(2);
4 myQueue.dequeue(value);
5 myQueue.enqueue(3);
6 myQueue.dequeue(value);
7 cout << value << endl;
```

a. 0
b. 1
c. 2
d. 3
e. None of these

b. 1

Computer Science & Information Technology

You might also like to view...

You've created an InDesign document with form fields, and you want the

exported Adobe PDF (Interactive) document to be opened, completed, and submitted using Adobe Reader. What must you do? What will be an ideal response?

Computer Science & Information Technology

A pure virtual function is a member function

a) Whose declaration ends with = 0. b) That is used in a derived class only. c) That is used in a base class d) Takes no arguments e) Member form that is used to force all derived classes to implement that member function or be a pure virtual function member of the derived class.

Computer Science & Information Technology