title: why am i getting some weird symbols as my output
body: <p>my code is </p>
  
  <pre><code> #include&lt;iostream&gt;
  
   using namespace std;
  
   int main()
  {
  int size;
  
  cout &lt;&lt; "enter number of letters in your name\t:";
  
  cin &gt;&gt; size;
  
  char *array = new char[size];
  
  cin.getline( array, size);
  
  for (int i = 0; i &lt;= size; i++)
  
      cout &lt;&lt;'\n'&lt;&lt; array[i];
  
  delete[] array;
  
  cin.get();
  }
  </code></pre>
  
  <p>and my output is some weird thing </p>
  
  <pre><code>enter number of letters in your name    :5
  
  
  /
   ≥
  
  └
  ramsay
  </code></pre>
  
  <p>and after this execution stops, for loop is newer executed.</p>
  
  <p>I know i am using old styled string but we have to use this as recommended by our high school</p>