Question: what is local global and static variable?
Answer: Static variables: means that they will die with the program itself, this means that the memory will be allocated & never will be released implicitly. Global: these variables can be accessed from anywhere. Local: these variables can be accessed inside their scopes only.