title: c++ how to free memory *char?
body: <p>How to free memory with something like this (Visual Studio 2008 - Win32/console):</p>
  
  <p>I can include only: iostream</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  void data_t(char *test[])
  {
      test[0] = new char[];
      test[1] = new char[];
      test[0] = "Test1";
      test[1] = "Test2";
  }
  
  int main()
  {
      char *test[2];
      data_t(test);
      cout&lt;&lt;test[0]&lt;&lt;"\n";
      cout&lt;&lt;test[1]&lt;&lt;"\n";
      delete[] test[0];//Debug assertion failed! - The program '[7884] Zadanie_4_sortowanie.exe: Native' has exited with code 3 (0x3).
      delete[] test[1];
  }
  </code></pre>
  
  <p>What i do wrong?</p>