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;


A) 6 2 3 3
B) 6 2 4 2
C) 6 3 3 3
D) 6 4 2 3

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions