c - When to use static keyword before global variables? -


Can you tell us that when you define the use of static keywords in global variables or permanent files, Is defined in?

For example, suppose I have a header file with a line:

  const float kGameSpriteWidth = 12.0f;  

Should it be in front of static const ? Static ?

static changes the file locally, which is generally good Look, for example, see.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -