#include &lt;iostream&gt;    #include &lt;stack&gt;    using namespace std;    int main &#40;&#41;    &#123;        stack&lt;int&gt; myints;        cout  &lt;&lt; &#40;int&#41; myints.size&#40;&#41;;        for &#40;int i = 0; i &lt; 5; i++&#41; myints.push&#40;i&#41;;        cout  &lt;&lt; &#40;int&#41; myints.size&#40;&#41; &lt;&lt; endl;        return 0;    &#125;
A. 05
B. 15
C. 24
D. 102
Answer:A
#include &lt;iostream&gt;    #include &lt;stack&gt;    using namespace std;    int main &#40;&#41;    &#123;        stack&lt;int&gt; myints;        cout  &lt;&lt; &#40;int&#41; myints.size&#40;&#41;;        for &#40;int i = 0; i &lt; 5; i++&#41; myints.push&#40;i&#41;;        cout  &lt;&lt; &#40;int&#41; myints.size&#40;&#41; &lt;&lt; endl;        return 0;    &#125;
A. 05 B. 15 C. 24 D. 102
Explanation:In this program, We declared myints and not initialized in first option, So it’s value is 0 and on another, We are pushing 5 values, So it’s size is 5.