sir how strtok work will you plzz tell me more strtok
String tokenizer
@Souryaman strtok function simply splits the string(according to delimeters) into tokens.
Say you have any input sentence and you want to split it into words. Then in this case you can use the strtok function with " " (space) as delimeter.
On a first call, the function expects a C string as argument for str, whose first character is used as the starting location to scan for tokens. In subsequent calls, the function expects a null pointer and uses the position right after the end of the last token as the new starting location for scanning.
http://www.cplusplus.com/reference/cstring/strtok/
https://www.tutorialspoint.com/c_standard_library/c_function_strtok.htm
Please refer these. It is clearly explained here with examples.
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.