title: Run-Time Check Failure #2 - Stack around the variable 'v' was corrupted
body: <p>when i run the code this error message was shown:<br>
      "Run-Time Check Failure #2 - Stack around the variable 'v' was corrupted"</p>
  
  <pre><code>int main()
  {
      int v;
      int* pointer = &amp;v;
      int *pointer1 = pointer;
      for (int i = 0; i &lt; 5; i++)
      {
          *pointer = i;
          pointer++;
      }
      pointer = pointer1;
      for (int i = 0; i &lt; 5; i++)
      {
          cout &lt;&lt; *pointer &lt;&lt; endl;
          pointer++;
      }
      system("PAUSE");
      return 0;
  } //The compiler catch error here.
  </code></pre>