If the ADT queue had a method clearthat removed all entries from a queue,what would its definition be in the previous array-based implementation?

What will be an ideal response?

```
template
void ArrayQueue::clear()
{
front = 0;
back = MAX_QUEUE – 1;
count = 0;
} // end clear

```

Computer Science & Information Technology

You might also like to view...

It is important to ________ for preventive measures and the recovery from any disaster situation

A) allow B) compete C) look D) set priorities

Computer Science & Information Technology

Which of the following components of a web page are cached by the web browser in order to speed up loading the page in future visits?

a. CSS files b. Image files c. HTML files d. Script Files e. B and C only f. A through D

Computer Science & Information Technology