title: invalid conversion from ‘char*’ to ‘char’
body: <p>I have already seen similar question but no answer for mine:
  In below code I want to store <code>word</code> in char array so that I can return array object. PLease tell me where is the problem??</p>
  
  <pre><code>int main(int, char**)
  {
      string text = "token test string";
      char *word;
      char *str;
      int i=0,j=0;
      word = strtok(&amp; text[0], " ");
  
      while(word!=NULL)
      {
          cout &lt;&lt; word &lt;&lt; " : " &lt;&lt; text.length() &lt;&lt; endl;
          word = strtok(NULL, " ");
          str[j]=word; // Here Error
          j++;
      }
  }
  </code></pre>