What is the difference between static and dynamic variables?�
A. Static variables are used to save memory space in lieu of dynamic variables.�
B. Static variables have global visibility while dynamic variables are restricted to individual components.�
C. Static variables have a set value for the lifetime of the program, while dynamic variables can change value as determined by the program.�
D. Static variables exist for as long as the program runs, while dynamic variables are created and destroyed by the program and scoping rules.�
Answer:D
What is the difference between static and dynamic variables?�
A. Static variables are used to save memory space in lieu of dynamic variables.� B. Static variables have global visibility while dynamic variables are restricted to individual components.� C. Static variables have a set value for the lifetime of the program, while dynamic variables can change value as determined by the program.� D. Static variables exist for as long as the program runs, while dynamic variables are created and destroyed by the program and scoping rules.�