title: How Can I return second element of stack without pop() function in C++?
body: <p>I need help for return second element of stack without pop() ? but I don't know how can I use.</p>
  
  <p>my code :</p>
  
  <pre><code>stack&lt;int&gt; st;
  st.push(10);
  st.push(20);
  st.top(); // return 20
  </code></pre>
  
  <p>How do can I make this function is return 10 without pop();</p>
  
  <p>Thanks.</p>
  
  <p>P.S. sorry for my English.</p>