Sir i didn’t get the part that the state of the array is maintained in a static array and that if we didn’t pass any string then the next token will be printed out!
Static Array part
what did not you understand?
this is correct
Static arrays are allocated memory at compile time and the memory is allocated on the stack hence they did not destroy after function call
they destroy when program completes
hence they are use to store string inside function
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.