String tokenizer doubt

sir static variable is created only once and its value continues in further calls as well
but sir what about that dynamically created array
is it created once or

it is created again and again
because sir when i did cout <<strlen(input>
its value will decrease as input keeps on shifting to next word after one call is completed
and in size of output array we have defined size as strlen(input)+1
so that means it is redefined again and again

so is the new ouput overwritten over the previous one??

and sir when we allocate dynamic memory then don’t we have to free that memory in the end??

plzz clear my doubt

Hi @yatin, pls share the code fragment where you are using strlen(input), it would be better if I read the whole part and then answer.
For the last question, we do not have to delete the dynamically located memory unless we need to. We need to do that only in case when we are short on memory.

For 1st question pls share your code.