|
Why Static Variables?
I am trying to create a list of "good" programming practices for the students. I cannot seem to google a good reason for proper use of static variables instead of globals. Anyone interested in sharing some knowledge?
When is a static variable required over a global?
What are the advantages of static variables?
What are the disadvantages of static variables?
Thanks!
|