LogiQuest
Back to STL
18

What will be the output of the program?

#include <iostream>
using namespace std;
#include <deque>
int main() {
    deque<int> d;
    d.push_back(2); d.push_front(1); d.push_back(3);
    cout << d.front() << d.back() << d.size() << endl;
    return 0;
}
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.