1,264 views

1 Answer

Best answer
7 votes
7 votes

A dynamic variable is a variable whose address is determined when the program is run. In contrast, a static variable has memory reserved for it at compilation time.

Dynamic variables provide flexibility. I mean that in dynamic variables, we do not have to mention the data type of variables at compile time, it can be decided by compiler on the basis of input values.

For example: Python, JavaScript etc have facility of dynamic variables. 

selected by

Related questions

3 votes
3 votes
2 answers
1
ManojK asked May 6, 2016
1,537 views
What is peephole (In peephole Optimization technique) ?
6 votes
6 votes
0 answers
2
PravardhanGate asked Feb 12, 2018
6,611 views
Any one who attended the interview for ISRO SCIENTIST, please share your experience....
1 votes
1 votes
7 answers
3
sh!va asked Dec 6, 2016
1,439 views
Conceptual question:What is the difference between program and process?any simple ,clear answer plz..