Question: what are the differences between static & dynamic and automatic variables and pointer variables?
Answer: Both auto and static variables are local variables. Static variables can retain the value of the variable between different function calls. But, scope of auto variable is within the function only. It can't retain the value of the variable between different function calls.