if c_str() returns pointer to character array, why we need to typecast it using (char*), it already is pointing to char array.
C_str() and strtok usage in string challenge
hello @skaushik.46
c_str() function return pointer of type const char *
but strtok demands pointer of type char * that is the reason why we are explicity typecasting
const char * to char *