Page 1 of 1

Which stack initialization (line numbers) are correct? Choose all that apply.#include <iostream>#include <deque>#include

Posted: Wed Aug 03, 2022 9:20 am
by answerhappygod
Which stack initialization (line numbers) are correct? Choose all that apply.#include <iostream>#include <deque>#include <list>#include <stack>#include <vector>using namespace std;int main(){deque<int> mydeck;list<int> mylist;vector<int> myvector;stack<int> first;// Line Istack<int> second(mydeck);// Line IIstack<int> third(second);// Line IIIstack<int, list<int> > fourth(mylist);// Line IVstack<int, vector<int> > fifth(myvector);// Line Vreturn 0;}

A. line I
B. line II
C. line III
D. line IV E. line V