in solving a string challenge (strtok implementation video)
why is it necessary to do
charptr= strtok((char)str.c_str( ), " ")
because previously in videos we were directly giving any string to stroke
e.g.
string s= " today is a rainy day ";
char*ptr = strtok(s, " ");