title: length of array in c++
body: <p>I read to get the length of array in C++, you do this:</p>
  
  <pre><code>int arr[17];
  int arrSize = sizeof(arr) / sizeof(int);
  </code></pre>
  
  <p>I tried to do the same for a string:
  where I have</p>
  
  <pre><code>string * arr;
  arr = new (nothrow) string [213561];
  </code></pre>
  
  <p>And then I do</p>
  
  <pre><code>arr[k] = "stuff";
  </code></pre>
  
  <p>where I loop through each index and put "stuff" in it.</p>
  
  <p>Now I want the size of the array which should be 213561, what's the correct way to do it and why is it so complex in C++?</p>