On running this code in the off-line IDE it is giving me the following error:
no matching function for call to ‘strtok’
Here is my code:
On running this code in the off-line IDE it is giving me the following error:
no matching function for call to ‘strtok’
Here is my code:
but aren’t we typecasting the string to char in the first argument of stroke, so doesn’t it mean we are working with characters?
@Ak07 the function can take multiple deliminators, that’s why you need to pass a string. If you have any confusion you can always refer to the documentation.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.