View Single Post
  #1   Spotlight this post!  
Unread 23-01-2007, 21:01
brianafischer brianafischer is offline
Registered User
FRC #0503 (Frog Force)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Michigan
Posts: 17
brianafischer is on a distinguished road
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!