Home / MCQ Bank / Computer
Computer Standard Template Library (Stl) In C Plus Plus

What will be the output of the following C++ code? #include <iostream> #include <list> #include <queue> using namespace std; int main() { queue<char> q; q.push('a'); q.push('b'); q.push('c'); cout << q.front(); q.pop(); cout << q.front(); q.pop(); cout << q.front(); q.pop(); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • abc

Related Computer Questions

Which keyword allows class members (methods and properties) to be used without needing to instantiate a new instance of the class? Which of the following Color Format is a CSS colors can also be defined using the keyword rgb, followed by three numbers between 0 and 255, contained in parentheses and separated by commas, with no spaces between them? Which method do we use to append more than one character at a time? What does the following Java code do? public Object function() { if(isEmpty()) return -999; else { Object high; high = q[front]; return high; } } Which of these is a stored program associated with a schedule?