Examlex

Solved

What Is the Output of the Following Code? QueueType<int> Queue;

question 21

Multiple Choice

What is the output of the following code? queueType<int> queue;
Int x,y;
x = 2;
y = 6;
queue.addQueue(x) ;
queue.addQueue(y) ;
x = queue.front() ;
queue.deleteQueue() ;
queue.addQueue(x + 2) ;
queue.addQueue(x) ;
queue.addQueue(y - 3) ;
while (!queue.isEmptyQueue() )
{
cout << queue.front() << " ";
queue.deleteQueue() ;
}
cout << endl;


Definitions:

Related Questions