Assume that the dequeue function, called on lines 4, 5, 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.dequeue(value);
6 myQueue.dequeue(value);
7 cout << value << endl;
```

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


c. 2

Computer Science & Information Technology

You might also like to view...

The most recent iteration of Windows Store apps is _____________________, also known as Universal apps.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The ________ chip, typically located on the mainboard, stores instructions for basic hardware initialization and management.

a) bootstrap b) firmware c) basic input/output system (BIOS) d) device driver

Computer Science & Information Technology

Skype enables you to present a Word document through a web browser

Indicate whether the statement is true or false

Computer Science & Information Technology

Which of the following is the default line spacing in a new document?

a. .75 b. 1.15 c. 1.25 d. 1.0

Computer Science & Information Technology