View Single Post
  #6   Spotlight this post!  
Unread 09-02-2004, 13:32
Random Dude Random Dude is offline
Oregon State Head FTA
AKA: Chris
no team (Oregon Robotics Tournament & Outreach Program)
 
Join Date: Aug 2002
Rookie Year: 1998
Location: Oregon
Posts: 142
Random Dude will become famous soon enoughRandom Dude will become famous soon enough
Re: volatile keyword

Quote:
Originally Posted by Texan
static can also be used outside a function. When used on a global variable, it is then only accessable to the functions in that file. It is impossible for a function out side the file to use it.

Actually, that is how normal "global" variables work. they have file scope. To increase the scope you need to use extern (see above).