String Tokenizer Function 1

  1. What happens with the initial string after calling strtok()?
  2. Why does this not work if instead of a character array I use string class?

hey @Mp18,

  1. Intial string is unaffected.
  2. This is function declaration of strtok(). char * strtok ( char * str, const char * delimiters );
    This function expects char array as input not string.