Variable Types and Usage Example
Variables are divided into static and dynamic variables (local and register variables). Static variables are assigned to static addresses in RAM and can retain their values after the function exits. Dynamic variables are allocated to the stack area or general-purpose registers and cannot retain their values after the function exits.