View Single Post
  #11   Spotlight this post!  
Unread 11-02-2004, 06:56
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: volatile keyword

Actually, here's what really happens. A normal golbal variable is accessible to any file, but in order to use it, the file has to be told it exists. Hence the extern. Static limits the scope to the file. If you know C++, an unnamed namespace does the same thing as static, when used on a global variable.
__________________