title: C++ pointer to vector
body: <p>I have to insert elements into a pointer to a vector.I have written the following code but it is giving segmentation fault. Could someone please point out what are the errors in this code or how can we do this alternatively.</p>
  
  <pre><code>int main()
  {
       vector&lt;int&gt; *te;
       te-&gt;push_back(10);
       cout&lt;&lt;te-&gt;size()&lt;&lt;endl;
       return 0;
   }
  </code></pre>