Static Array Definition

While watching the making our own string tokenizer video, a term static array was introduced. I never heard of this term before, so I want to know about what is a Static Array or more precisely a static variable.

Static variables have a property of preserving their value even after they are out of their scope!Hence, static variables preserve their previous value in their previous scope and are not initialized again in the new scope.

Static arrays are allocated memory at compile time and the memory is allocated on the stack, that means readily available at time of execution of the program.

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.