title: Why should someone prefer vectors over arrays?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6462985/c-stl-vector-vs-array-in-the-real-world">C++ STL vector vs array in the real world</a>  </p>
  </blockquote>
  
  
  
  <p><em>To start of I have a little below average knowledge of C++ and advanced knowledge of C</em> <br>Many times, I want to ask something code related and include or refer to some code and an <code>array</code> comes up everyone instantly lock on this aspect and suggest I should instead use a <code>vector</code>, even if it doesn't have to do anything related to my problem. </p>
  
  <p>The problem is that this is the way I learned how to use C++, obviously something I inherited from learning plain C first, and I am quite used to it, although I feel confident about using vectors also, I just prefer <code>arrays</code> over <code>vectors</code>.</p>
  
  <p>My questions are why should someone use a <code>vector</code> instead of an <code>array</code>, what does he earn by doing so, even if he is quite used to arrays?<br>
  Also if <code>arrays</code> are not preferred over <code>vectors</code> why doesn't everyone simply use vectors for everything?</p>