Regarding NULL variable

Sir pls tell me why we use NULL here.Is there any alternate method to NULL.

Hello @Hk199977,

We use NULL to identify if the string we have to tokenize is the same string that we passed before.
The in-built string tokenizer that you use has been coded to accept NULL as parameter.

So, the alternative is to create your own string tokenizer as Sir has explained in the next video and use some another value as an alternative of NULL for the same purpose.

I would highly suggest you to watch the next video where Sir has implemented the string tokenizer.

Hope, this would help.
Give alike if you are satisfied.

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.