in designing string tokeniser ? is it necessary to take output array as a dynamic array.
In designing string tokeniser?
@mehulbhandari358 since the size of each token is not known beforehand it is best to take it as a dynamic array
can we take static array of size of the length of the input then would it be okay ?
@mehulbhandari358 strtok will return a pointer. It might produce an error if you try to assign it to a char array. Is there any issue with using a dynamic array?
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.