#include &lt;iostream&gt;    #include &lt;iterator&gt;    #include &lt;list&gt;    using namespace std;    int main &#40;&#41;     &#123;        list&lt;int&gt; mylist;        for &#40;int i = 0; i &lt; 10; i++&#41;         mylist.push_back &#40;i * 10&#41;;        list&lt;int&gt; :: iterator it = mylist.begin&#40;&#41;;        advance &#40;it, 5&#41;;        cout  &lt;&lt; *it &lt;&lt; endl;        return 0;    &#125;
A. 30
B. 40
C. 50
D. 60
Answer:A
#include &lt;iostream&gt;    #include &lt;iterator&gt;    #include &lt;list&gt;    using namespace std;    int main &#40;&#41;     &#123;        list&lt;int&gt; mylist;        for &#40;int i = 0; i &lt; 10; i++&#41;         mylist.push_back &#40;i * 10&#41;;        list&lt;int&gt; :: iterator it = mylist.begin&#40;&#41;;        advance &#40;it, 5&#41;;        cout  &lt;&lt; *it &lt;&lt; endl;        return 0;    &#125;
A. 30 B. 40 C. 50 D. 60
Explanation:In this program, We are printing the sixth element in the list.