title: String tokenization strange character output
body: <p>I am trying to tokenize an array of strings, however, my program keeps printing these strange characters. I believe it has something to do with null-terminating my string. If that is the problem then what can I do to fix it?</p>
  
  <pre><code>#define _CRT_SECURE_NO_WARNINGS
  #include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  #include&lt;stdlib.h&gt;
  
  int main(void)
  {
      char* s[] = { "12, 34, 56, 78", "82.16, 41.296",
                    "2, -3, 5, -7, 11, -13, 17, -19",
                    "9.00009, 90.0009, 900.009, 9000.09, 90000.9" };
  
      char *token = strtok(s, ", ");
  
      while (token != NULL) {
          printf("%s\n", token);
          token = strtok(NULL, ", ");
      }
      return 0;
  }
  </code></pre>
  
  <p>Here is a photo of the output.</p>
  
  <p><a href="https://i.stack.imgur.com/bAH0b.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bAH0b.jpg" alt=""></a></p>
  
  <p>Thank you</p>